From: Alberto Bursi Date: Mon, 6 Feb 2017 09:20:47 +0000 (+0100) Subject: kirkwood: cleanup nsa310b mac address extraction X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f99178b6c0651d42ff0909ed0c88166e3076d231;p=librecmc%2Flibrecmc.git 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 --- diff --git a/target/linux/kirkwood/base-files/etc/board.d/02_network b/target/linux/kirkwood/base-files/etc/board.d/02_network index 91b59b93bd..b5406b0e37 100755 --- a/target/linux/kirkwood/base-files/etc/board.d/02_network +++ b/target/linux/kirkwood/base-files/etc/board.d/02_network @@ -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"