ramips: add user space support for the DIR-645

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 33844
This commit is contained in:
Gabor Juhos
2012-10-18 07:23:03 +00:00
parent d1a253a2fd
commit 06edafd079
6 changed files with 50 additions and 0 deletions

View File

@@ -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