mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-19 13:48:06 +00:00
kirkwood: cleanup nsa310b mac address extraction
switch nsa310b mac address reading to mtd_get_mac_ascii helper as it seems the fw_env.config file is created way later than when network is set up, when I tested I still had that file included in the image through /files folder. Signed-off-by: Alberto Bursi <alberto.bursi@outlook.it>
This commit is contained in:
parent
9a9f2f97e6
commit
f99178b6c0
@ -32,7 +32,7 @@ case "$board" in
|
||||
;;
|
||||
"nsa310b")
|
||||
ucidef_set_interface_lan "eth0" "dhcp"
|
||||
ucidef_set_interface_macaddr "lan" $( fw_printenv ethaddr | awk -F"=" '{print $2}' )
|
||||
ucidef_set_interface_macaddr "lan" $( mtd_get_mac_ascii uboot_env ethaddr )
|
||||
;;
|
||||
*)
|
||||
ucidef_set_interface_lan "eth0"
|
||||
|
Loading…
Reference in New Issue
Block a user