projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert "mpc85xx: remove Watchguard T10 MAC override"
[openwrt/openwrt.git]
/
target
/
linux
/
mpc85xx
/
base-files
/
lib
/
preinit
/
10_fix_eth_mac.sh
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 462a9e9dd8e1677c968ea5ec660150a4b1ef061a..0d9058420b73ceb060be153d888118d9d25cba15 100644
(file)
--- 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)
;;
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
}
esac
}