mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-25 03:01:09 +02:00
fix up mac address setting on ixp4xx for devices that store this info in the RedBoot config partition
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11285 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
80d7a5ac9f
commit
34bf542fa5
@ -22,6 +22,6 @@ define Kernel/Configure
|
||||
$(if $(CONFIG_EABI_SUPPORT),echo '# CONFIG_OABI_COMPAT is not set' >> $(LINUX_DIR)/.config)
|
||||
endef
|
||||
|
||||
DEFAULT_PACKAGES += ixp4xx-microcode
|
||||
DEFAULT_PACKAGES += ixp4xx-microcode fconfig
|
||||
|
||||
$(eval $(call BuildTarget))
|
||||
|
8
target/linux/ixp4xx/base-files/etc/preinit.arch
Executable file
8
target/linux/ixp4xx/base-files/etc/preinit.arch
Executable file
@ -0,0 +1,8 @@
|
||||
RB_CONFIG="$(grep "RedBoot config" /proc/mtd | cut -d: -f1)"
|
||||
|
||||
for npe in eth0 eth1
|
||||
do
|
||||
if [ "$(ifconfig $npe 2>/dev/null | grep -c 00:00:00:00:00:00)" == "1" ]; then
|
||||
ifconfig $npe hw ether $(fconfig -s -r -d /dev/$RB_CONFIG -n npe_"$npe"_esa)
|
||||
fi
|
||||
done
|
Loading…
Reference in New Issue
Block a user