summaryrefslogtreecommitdiff
path: root/sys/src/9
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@localhost>2011-05-01 07:07:32 +0000
committercinap_lenrek <cinap_lenrek@localhost>2011-05-01 07:07:32 +0000
commitdb7290d79e86abfdab490e793073a4936c8e1e5f (patch)
treedac3dcff6e2dfa616a99a03732013345038eb51b /sys/src/9
parent064bce08419857817e0b851ea43ae66b2aee0843 (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')
-rw-r--r--sys/src/9/boot/bootrc13
-rwxr-xr-xsys/src/9/boot/tcp.rc4
2 files changed, 5 insertions, 12 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(){
diff --git a/sys/src/9/boot/tcp.rc b/sys/src/9/boot/tcp.rc
index 18e45edb2..63a6b56c5 100755
--- a/sys/src/9/boot/tcp.rc
+++ b/sys/src/9/boot/tcp.rc
@@ -1,10 +1,6 @@
#!/bin/rc
fn configtcp{
- # bind in an ip interface
- for(i in I l`{seq 0 3})
- bind -qa '#'$i /net
-
must ip/ipconfig -p $*
if(~ $#fs 0)