X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=blobdiff_plain;f=target%2Flinux%2Fixp4xx%2Fbase-files%2Fetc%2Fpreinit.arch;h=f52133d841a60c5aa419377e5b479bd81dbb98bb;hp=817fa2e6f2dc4d7dedf18d8c0f82d2bd34f765b1;hb=2886a9f7b88c83aa274ec5ef54d3c0131d3d002f;hpb=6d6729c417cc3604f71dc4cc0ad412c18abffa17 diff --git a/target/linux/ixp4xx/base-files/etc/preinit.arch b/target/linux/ixp4xx/base-files/etc/preinit.arch index 817fa2e6f2..f52133d841 100755 --- a/target/linux/ixp4xx/base-files/etc/preinit.arch +++ b/target/linux/ixp4xx/base-files/etc/preinit.arch @@ -6,3 +6,10 @@ do ifconfig $npe hw ether $(fconfig -s -r -d /dev/$RB_CONFIG -n npe_"$npe"_esa) fi done + +# Some developers should be shot on sight at Zcom/Netgear +# -- Fixup for the WG302v1, need someone with a WAG302v1 to fix that, too + +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