aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/kirkwood/base-files/etc
diff options
context:
space:
mode:
authorAlberto Bursi <alberto.bursi@outlook.it>2017-02-06 10:20:47 +0100
committerFelix Fietkau <nbd@nbd.name>2017-02-11 21:16:28 +0100
commitf99178b6c0651d42ff0909ed0c88166e3076d231 (patch)
treeee1a58f16a044ff6ca5394cc3f7f99dd7611b7fa /target/linux/kirkwood/base-files/etc
parent9a9f2f97e6b66cc88866b3522372d4caa59b26de (diff)
downloadupstream-f99178b6c0651d42ff0909ed0c88166e3076d231.tar.gz
upstream-f99178b6c0651d42ff0909ed0c88166e3076d231.tar.bz2
upstream-f99178b6c0651d42ff0909ed0c88166e3076d231.zip
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>
Diffstat (limited to 'target/linux/kirkwood/base-files/etc')
-rwxr-xr-xtarget/linux/kirkwood/base-files/etc/board.d/02_network2
1 files changed, 1 insertions, 1 deletions
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"