Skip to content
Snippets Groups Projects
Commit f99178b6 authored by Alberto Bursi's avatar Alberto Bursi Committed by Felix Fietkau
Browse files

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: default avatarAlberto Bursi <alberto.bursi@outlook.it>
parent 9a9f2f97
No related branches found
No related tags found
No related merge requests found
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment