mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-30 18:14:04 +02:00
ramips: mac address detection for Fonera 2.0n
Detect and apply MAC address of a Fonera 2.0n (ramips) Signed-off-by: Malte Forkel <malte.forkel@berlin.de> Signed-off-by: Vasilis Tsiligiannis <b_tsiligiannis@silverton.gr> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32490 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
27abc2e19f
commit
99a635edd1
@ -107,6 +107,11 @@ ramips_setup_macs()
|
|||||||
wan_mac=$(/usr/sbin/maccalc add "$lan_mac" 5)
|
wan_mac=$(/usr/sbin/maccalc add "$lan_mac" 5)
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
fonera20n)
|
||||||
|
lan_mac=$(ramips_get_mac_binary factory 40)
|
||||||
|
wan_mac=$(/usr/sbin/maccalc add "$lan_mac" 1)
|
||||||
|
;;
|
||||||
|
|
||||||
dir-300-b1 |\
|
dir-300-b1 |\
|
||||||
dir-300-b2 |\
|
dir-300-b2 |\
|
||||||
dir-600-b1)
|
dir-600-b1)
|
||||||
|
@ -26,6 +26,7 @@ preinit_set_mac_address() {
|
|||||||
ifconfig eth0 hw ether $mac 2>/dev/null
|
ifconfig eth0 hw ether $mac 2>/dev/null
|
||||||
;;
|
;;
|
||||||
all0256n |\
|
all0256n |\
|
||||||
|
fonera20n |\
|
||||||
hw550-3g |\
|
hw550-3g |\
|
||||||
nbg-419n |\
|
nbg-419n |\
|
||||||
omni-emb |\
|
omni-emb |\
|
||||||
|
Loading…
Reference in New Issue
Block a user