diff options
author | Mike Baker <mbm@openwrt.org> | 2004-10-17 23:34:31 +0000 |
---|---|---|
committer | Mike Baker <mbm@openwrt.org> | 2004-10-17 23:34:31 +0000 |
commit | ba762691fe64f324f705082e92199229efe0b314 (patch) | |
tree | e26471ffcb86508b29cf0eaa321780e0d3950177 /obsolete-buildroot | |
parent | 45bab7bb6529d5c1f0a3cd20398ecb64b638a8ae (diff) | |
download | mtk-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-x | obsolete-buildroot/sources/openwrt/root/etc/init.d/S10boot | 3 |
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}') |