mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
[ixp4xx:] add support for the Tonze AP-422/425
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34165 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -17,6 +17,15 @@ set_ether_mac() {
|
||||
if [ "$(ifconfig eth0 2>/dev/null | grep -c 00:00:00:00:00:00)" == "1" ]; then
|
||||
ifconfig eth0 hw ether $(fconfig -s -r -d /dev/$RB_CONFIG -n zcom_npe_esa)
|
||||
fi
|
||||
|
||||
# Others (*cough*, Tonze) are dumb enough to not handle mac addresses at all
|
||||
|
||||
if [ "$(ifconfig eth0 2>/dev/null | grep -c 00:00:00:00:00:00)" == "1" ]; then
|
||||
ifconfig eth0 hw ether 00:11:22:33:44:55
|
||||
fi
|
||||
if [ "$(ifconfig eth1 2>/dev/null | grep -c 00:00:00:00:00:00)" == "1" ]; then
|
||||
ifconfig eth1 hw ether 00:11:22:33:44:56
|
||||
fi
|
||||
}
|
||||
|
||||
boot_hook_add preinit_main set_ether_mac
|
||||
|
||||
Reference in New Issue
Block a user