ramips: set preinit interface mac on the hw550-3g board
authorGabor Juhos <juhosg@openwrt.org>
Mon, 5 Dec 2011 17:27:06 +0000 (17:27 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Mon, 5 Dec 2011 17:27:06 +0000 (17:27 +0000)
Based on a patch by Daniel Golle <dgolle@allnet.de>

SVN-Revision: 29453

target/linux/ramips/base-files/lib/preinit/06_set_iface_mac

index 9fef7d471a2d463e26c07a28288f3417a16bc3a8..2d6a4b6dee6c22dffbb5e59d1ab041185ce3965b 100644 (file)
@@ -13,6 +13,10 @@ preinit_set_mac_address() {
                mac=$(maccalc or "$mac" "02:00:00:00:00:00")
                ifconfig eth0 hw ether $mac 2>/dev/null
                ;;
+       hw550-3g)
+               mac=$(ramips_get_mac_binary factory 40)
+               ifconfig eth0 hw ether $mac 2>/dev/null
+               ;;
        esac
 }