aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mpc85xx
diff options
context:
space:
mode:
authorDavid Bauer <mail@david-bauer.net>2023-04-03 03:06:45 +0200
committerDavid Bauer <mail@david-bauer.net>2023-04-03 03:14:20 +0200
commitf003217ddfa1e3400b6b813410c8dd4aedf5d92a (patch)
treef914f2ce1c7306012a88132a35d0bc6b31a082ab /target/linux/mpc85xx
parent658b45ce48d2e96c3bca20343272465e295ccb92 (diff)
downloadupstream-f003217ddfa1e3400b6b813410c8dd4aedf5d92a.tar.gz
upstream-f003217ddfa1e3400b6b813410c8dd4aedf5d92a.tar.bz2
upstream-f003217ddfa1e3400b6b813410c8dd4aedf5d92a.zip
Revert "mpc85xx: remove Watchguard T10 MAC override"
This reverts commit aa4a9058fbf4d2ca7ef3af9ebb5bbec896625e93. The assumption the bootloader fills out the MAC-address is not correct. The MAC-address has to be set from userspace based on information found in the device_id partition. Signed-off-by: David Bauer <mail@david-bauer.net>
Diffstat (limited to 'target/linux/mpc85xx')
-rw-r--r--target/linux/mpc85xx/base-files/lib/preinit/10_fix_eth_mac.sh5
1 files changed, 5 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
index 462a9e9dd8..0d9058420b 100644
--- 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
@@ -7,6 +7,11 @@ preinit_set_mac_address() {
ip link set dev eth0 address $(mtd_get_mac_ascii cfg1 ethaddr)
ip link set dev eth1 address $(mtd_get_mac_ascii cfg1 eth1addr)
;;
+ watchguard,firebox-t10)
+ ip link set dev eth0 address "$(mtd_get_mac_text "device_id" 0x1830)"
+ ip link set dev eth1 address "$(mtd_get_mac_text "device_id" 0x1844)"
+ ip link set dev eth2 address "$(mtd_get_mac_text "device_id" 0x1858)"
+ ;;
esac
}