forked from Ivasoft/openwrt
The target au1000 has at least 2 different models, the 'InternetBox' and the 'MeshCube' which look very similar from the kernel point of view but are totally different devices which base on the same design. Populating /tmp/sysinfo now. The 1st one has an issue which leads to a random mac-address after each boot which is corrected now via reading the bootloader-env. The real fix would be converting to DTS, this is only a workaround now. Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com> SVN-Revision: 43626
18 lines
333 B
Bash
Executable File
18 lines
333 B
Bash
Executable File
#!/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
|