summaryrefslogtreecommitdiff
path: root/rc/bin/nusbrc
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@gmx.de>2012-12-05 13:53:34 +0100
committercinap_lenrek <cinap_lenrek@gmx.de>2012-12-05 13:53:34 +0100
commit07506870120ed7d705da18b3a0c314cf3de1f9ce (patch)
tree204b00998fcda4de40d8b1a46c16b4fc38f1bcf3 /rc/bin/nusbrc
parent96cc3eb2ee989163e02129b8fc1f7aa581c7fd40 (diff)
downloadplan9front-07506870120ed7d705da18b3a0c314cf3de1f9ce.tar.xz
move usb ethernet in bootfs.paq
Diffstat (limited to 'rc/bin/nusbrc')
-rwxr-xr-xrc/bin/nusbrc15
1 files changed, 5 insertions, 10 deletions
diff --git a/rc/bin/nusbrc b/rc/bin/nusbrc
index 71fe5734e..546803a4b 100755
--- a/rc/bin/nusbrc
+++ b/rc/bin/nusbrc
@@ -4,9 +4,6 @@ if(! test -e '#σ/usb/usbevent')
exit
if(! bind -a '#u' /dev)
exit
-
-mkdir -p -m 700 '#σc/usbnet'
-
@{
rfork ne
fn attach {
@@ -16,7 +13,8 @@ mkdir -p -m 700 '#σc/usbnet'
case *02
# serial and ethernet
nusb/serial $1
- nusb/ether $1
+ # handled /sys/src/9/boot/nusbrc
+ # nusb/ether $1
case *03
# handled /sys/src/9/boot/nusbrc
# nusb/kb $1
@@ -28,13 +26,10 @@ mkdir -p -m 700 '#σc/usbnet'
}
}
fn detach {
- switch($4){
- case *02
- rm -f '#σ/usbnet/'^$1.*
- }
+ # handled /sys/src/9/boot/nusbrc
}
rc < '#σ/usb/usbevent' &
}
-bind -a '#σ/usb' /dev
-bind -a '#σ/usbnet' /net
+bind -qa '#σ/usb' /dev
+bind -qa '#σ/usbnet' /net