aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mpc85xx
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/mpc85xx')
-rw-r--r--target/linux/mpc85xx/base-files/lib/preinit/10_fix_eth_mac.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/target/linux/mpc85xx/base-files/lib/preinit/10_fix_eth_mac.sh b/target/linux/mpc85xx/base-files/lib/preinit/10_fix_eth_mac.sh
new file mode 100644
index 0000000000..d94eba688c
--- /dev/null
+++ b/target/linux/mpc85xx/base-files/lib/preinit/10_fix_eth_mac.sh
@@ -0,0 +1,12 @@
+. /lib/functions.sh
+
+preinit_set_mac_address() {
+ case $(board_name) in
+ extreme-networks,ws-ap3825i)
+ ip link set dev eth0 address $(mtd_get_mac_ascii cfg1 ethaddr)
+ ip link set dev eth1 address $(mtd_get_mac_ascii cfg1 eth1addr)
+ ;;
+ esac
+}
+
+boot_hook_add preinit_main preinit_set_mac_address