aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/generic/base-files/lib
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/ath79/generic/base-files/lib')
-rw-r--r--target/linux/ath79/generic/base-files/lib/preinit/10_fix_eth_mac.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/target/linux/ath79/generic/base-files/lib/preinit/10_fix_eth_mac.sh b/target/linux/ath79/generic/base-files/lib/preinit/10_fix_eth_mac.sh
new file mode 100644
index 0000000000..a0fb9fc717
--- /dev/null
+++ b/target/linux/ath79/generic/base-files/lib/preinit/10_fix_eth_mac.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+. /lib/functions.sh
+
+preinit_set_mac_address() {
+ case $(board_name) in
+ siemens,ws-ap3610)
+ ip link set dev eth0 address $(mtd_get_mac_ascii cfg1 ethaddr)
+ ;;
+ esac
+}
+
+boot_hook_add preinit_main preinit_set_mac_address