diff options
author | cinap_lenrek <cinap_lenrek@localhost> | 2011-05-01 07:07:32 +0000 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@localhost> | 2011-05-01 07:07:32 +0000 |
commit | db7290d79e86abfdab490e793073a4936c8e1e5f (patch) | |
tree | dac3dcff6e2dfa616a99a03732013345038eb51b /sys/src/9/boot/bootrc | |
parent | 064bce08419857817e0b851ea43ae66b2aee0843 (diff) |
cwfs: fix network listener, relay auth errors. boot(8): split bootargs only on first ! char, prepare /net so cwfs can announce 9fs
Diffstat (limited to 'sys/src/9/boot/bootrc')
-rw-r--r-- | sys/src/9/boot/bootrc | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/sys/src/9/boot/bootrc b/sys/src/9/boot/bootrc index 9b6fc6a28..4590c4a38 100644 --- a/sys/src/9/boot/bootrc +++ b/sys/src/9/boot/bootrc @@ -70,20 +70,13 @@ fn main{ } if not bootargs=$nobootprompt mn=`{echo $bootargs | awk -F! '{print $1}'} - ma=`{echo $bootargs | awk -F! '{print $2}'} + ma=`{echo $bootargs | sed 's/[^!]+!//'} for(i in `{seq 1 $#mt}){ if(~ $mt($i) m^$mn) mp=$$mt($i) } } - switch($mn){ - case local - islocal=1 - case hybrid - ishybrid=1 - } - # config method $mp(1) $ma @@ -149,6 +142,10 @@ if(! ~ $#kbmap 0){ cat $"kbmap >/dev/kbmap } +# bind in an ip interface +for(i in I l`{seq 0 3}) + bind -qa '#'$i /net + configlocal # add partitions and binds while(){ |