summaryrefslogtreecommitdiff
path: root/obsolete-buildroot
diff options
context:
space:
mode:
authorMike Baker <mbm@openwrt.org>2004-10-17 23:34:31 +0000
committerMike Baker <mbm@openwrt.org>2004-10-17 23:34:31 +0000
commitba762691fe64f324f705082e92199229efe0b314 (patch)
treee26471ffcb86508b29cf0eaa321780e0d3950177 /obsolete-buildroot
parent45bab7bb6529d5c1f0a3cd20398ecb64b638a8ae (diff)
downloadmtk-20170518-ba762691fe64f324f705082e92199229efe0b314.zip
mtk-20170518-ba762691fe64f324f705082e92199229efe0b314.tar.gz
mtk-20170518-ba762691fe64f324f705082e92199229efe0b314.tar.bz2
Fix v1.0 nvram "bug".
SVN-Revision: 170
Diffstat (limited to 'obsolete-buildroot')
-rwxr-xr-xobsolete-buildroot/sources/openwrt/root/etc/init.d/S10boot3
1 files changed, 1 insertions, 2 deletions
diff --git a/obsolete-buildroot/sources/openwrt/root/etc/init.d/S10boot b/obsolete-buildroot/sources/openwrt/root/etc/init.d/S10boot
index f69c881..b650c94 100755
--- a/obsolete-buildroot/sources/openwrt/root/etc/init.d/S10boot
+++ b/obsolete-buildroot/sources/openwrt/root/etc/init.d/S10boot
@@ -5,8 +5,7 @@ echo "S" > /proc/jffs2_bbc
mkdir -p /var/run
-[ -z "$(nvram get il0macaddr)" ] || \
-[ "$(nvram get il0macaddr)" = "00:90:4c:5f:00:2a" ] && {
+[ "$(nvram get il0macaddr)" = "00:90:4c:5f:00:2a" ] && {
# if default wifi mac, set two higher than the lan mac
nvram set il0macaddr=$(nvram get et0macaddr|
awk '{OFS=FS=":";for(x=7,y=2;--x;){$x=sprintf("%02x",(y+="0x"$x)%256);y/=256}print}')