diff options
author | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-10-18 07:23:03 +0000 |
---|---|---|
committer | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-10-18 07:23:03 +0000 |
commit | 2ab0fbc9de6365d066857cf0b53da22275dbf356 (patch) | |
tree | afe566e2eecb2985c30e40af0bc6e922df994df8 /target/linux/ramips/base-files/lib/preinit | |
parent | 4b6389781e7391ec76eaaab51b32c018ef9bad96 (diff) |
ramips: add user space support for the DIR-645
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33844 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/base-files/lib/preinit')
-rw-r--r-- | target/linux/ramips/base-files/lib/preinit/06_set_iface_mac | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac b/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac index 591c549d14..0ff21892d6 100644 --- a/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac +++ b/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac @@ -30,6 +30,11 @@ preinit_set_mac_address() { mac=$(ramips_get_mac_binary devdata 16388) ifconfig eth0 hw ether $mac 2>/dev/null ;; + dir-645) + mac=$(ramips_get_mac_nvram nvram lanmac) + mac=$(maccalc or "$mac" "02:00:00:00:00:00") + ifconfig eth0 hw ether $mac 2>/dev/null + ;; dap-1350) mac=$(ramips_get_mac_binary devdata 46) ifconfig eth0 hw ether $mac 2>/dev/null |