[source] kirkwood: cleanup nsa310b mac address extraction
LEDE Commits
lede-commits at lists.infradead.org
Sat Feb 11 12:18:25 PST 2017
nbd pushed a commit to source.git, branch master:
https://git.lede-project.org/f99178b6c0651d42ff0909ed0c88166e3076d231
commit f99178b6c0651d42ff0909ed0c88166e3076d231
Author: Alberto Bursi <alberto.bursi at outlook.it>
AuthorDate: Mon Feb 6 10:20:47 2017 +0100
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 at outlook.it>
---
target/linux/kirkwood/base-files/etc/board.d/02_network | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 91b59b9..b5406b0 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"
More information about the lede-commits
mailing list