projects
/
openwrt
/
staging
/
wigyori.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
1ee1d7404dd00adb23993ef30f43cae09d0723e7
[openwrt/staging/wigyori.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
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