mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
ramips: set preinit interface mac on the hw550-3g board
Based on a patch by Daniel Golle <dgolle@allnet.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29453 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -13,6 +13,10 @@ preinit_set_mac_address() {
|
|||||||
mac=$(maccalc or "$mac" "02:00:00:00:00:00")
|
mac=$(maccalc or "$mac" "02:00:00:00:00:00")
|
||||||
ifconfig eth0 hw ether $mac 2>/dev/null
|
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
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user