diff options
author | mbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2004-07-13 02:51:21 +0000 |
---|---|---|
committer | mbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2004-07-13 02:51:21 +0000 |
commit | edde8d40b677a02d729e299aa0f986598deb287d (patch) | |
tree | bcfb429eef178d9b65350ee67d1476bb08645656 /root/etc/init.d/S10boot | |
parent | 5e235f254fb2d618414a9bbe86789815b7d1df2d (diff) |
split ifup/ifdown/wifi into standalone scripts
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@94 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'root/etc/init.d/S10boot')
-rwxr-xr-x | root/etc/init.d/S10boot | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/root/etc/init.d/S10boot b/root/etc/init.d/S10boot index c7c9ba256..11bc31b1b 100755 --- a/root/etc/init.d/S10boot +++ b/root/etc/init.d/S10boot @@ -8,7 +8,7 @@ mkdir -p /var/run [ "$(nvram get il0macaddr)" = "00:90:4c:5f:00:2a" ] && { # force unique wireless mac nvram set il0macaddr=$(nvram get et0macaddr| - awk -F ":" '{for(x=6,y=2;x;x--){y+=int("0x"$x);$x=sprintf("%02x",y%256);y/=256}gsub(" ",":");print}') + awk '{OFS=FS=":";for(x=6,y=2;x;x--){$x=sprintf("%02x",(y+="0x"$x)%256);y/=256}print}') } insmod et |