mpc85xx: add support for Watchguard Firebox T10
[openwrt/openwrt.git] / target / linux / mpc85xx / base-files / lib / preinit / 10_fix_eth_mac.sh
index d94eba688c8ed73c0f710936a3df9702939f5398..d84ab5f186b4d6966aabf3ee6b9dcb23cf3909bf 100644 (file)
@@ -6,6 +6,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
 }