diff options
| author | Mike Baker <mbm@openwrt.org> | 2004-07-13 02:51:21 +0000 |
|---|---|---|
| committer | Mike Baker <mbm@openwrt.org> | 2004-07-13 02:51:21 +0000 |
| commit | 9ac0b84f406a3df6c2e347f363b2535a56f9dacf (patch) | |
| tree | bcfb429eef178d9b65350ee67d1476bb08645656 /root/etc/init.d | |
| parent | 45f3704836648b0aaf14c18e1c3d23377b3cdf19 (diff) | |
| download | upstream-9ac0b84f406a3df6c2e347f363b2535a56f9dacf.tar.gz upstream-9ac0b84f406a3df6c2e347f363b2535a56f9dacf.tar.bz2 upstream-9ac0b84f406a3df6c2e347f363b2535a56f9dacf.zip | |
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')
| -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 c7c9ba25690..11bc31b1bcd 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 |
