From edde8d40b677a02d729e299aa0f986598deb287d Mon Sep 17 00:00:00 2001 From: mbm Date: Tue, 13 Jul 2004 02:51:21 +0000 Subject: split ifup/ifdown/wifi into standalone scripts git-svn-id: svn://svn.openwrt.org/openwrt/trunk@94 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- root/etc/init.d/S10boot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'root/etc/init.d/S10boot') 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 -- cgit v1.2.3