add support for the GPIO expander used on the Cambria based on patches from Chris
[openwrt.git] / target / linux / ixp4xx / base-files / etc / preinit.arch
1 RB_CONFIG="$(grep "RedBoot config" /proc/mtd | cut -d: -f1)"
2
3 for npe in eth0 eth1 eth2
4 do
5 if [ "$(ifconfig $npe 2>/dev/null | grep -c 00:00:00:00:00:00)" == "1" ]; then
6 ifconfig $npe hw ether $(fconfig -s -r -d /dev/$RB_CONFIG -n npe_"$npe"_esa)
7 fi
8 done
9
10 # Some developers should be shot on sight at Zcom/Netgear
11 # -- Fixup for the WG302v1, need someone with a WAG302v1 to fix that, too
12
13 if [ "$(ifconfig eth0 2>/dev/null | grep -c 00:00:00:00:00:00)" == "1" ]; then
14 ifconfig eth0 hw ether $(fconfig -s -r -d /dev/$RB_CONFIG -n zcom_npe_esa)
15 fi
This page took 0.039534 seconds and 5 git commands to generate.