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