#!/bin/sh /etc/rc.common

START=90

boot() {
    old_ip6addr="$(ifconfig br-lan | grep Global | grep 'inet6 addr: fc00' | awk -F " " '{printf $3}')"
    [ -n "$old_ip6addr" ] && return
    sta_addr="$(cat /tmp/wifi1_mac.txt)"
    sta_global="$(sh /sbin/mesh.sh mac_to_ipv6_unique_local $sta_addr)"
    ip -6 addr add ${sta_global}/64 dev br-lan
}
