80bfb732d2982c75928ff989f22b74e718454999
[openwrt.git] / target / linux / au1000 / base-files / etc / uci-defaults / 02_network
1 #!/bin/sh
2
3 . /lib/au1000.sh
4 . /lib/functions/system.sh
5 . /lib/functions/uci-defaults.sh
6 MAC=
7
8 case "$(au1000_board_name)" in
9         'internetbox')
10                 MAC="$( au1000_yamonenv_getvar 'ethaddr' )"
11                 MAC="$( macaddr_canonicalize "$MAC" )"
12
13                 [ -n "$MAC ] && ucidef_set_interface_macaddr lan "$MAC"
14         ;;
15 esac
16
17 [ -z "$MAC" ] || uci commit network