nusbrc: revert
This commit is contained in:
parent
b63b2a8284
commit
7b6d8b29b7
1 changed files with 1 additions and 8 deletions
|
@ -5,8 +5,6 @@ if(! test -e '#σ/usb/usbevent')
|
||||||
if(! bind -a '#u' /dev)
|
if(! bind -a '#u' /dev)
|
||||||
exit
|
exit
|
||||||
|
|
||||||
mkdir -p -m 700 '#σc/usbnet'
|
|
||||||
|
|
||||||
@{
|
@{
|
||||||
rfork ne
|
rfork ne
|
||||||
fn attach {
|
fn attach {
|
||||||
|
@ -16,7 +14,6 @@ mkdir -p -m 700 '#σc/usbnet'
|
||||||
case *02
|
case *02
|
||||||
# serial and ethernet
|
# serial and ethernet
|
||||||
nusb/serial $1
|
nusb/serial $1
|
||||||
nusb/ether $1
|
|
||||||
case *03
|
case *03
|
||||||
# handled /sys/src/9/boot/nusbrc
|
# handled /sys/src/9/boot/nusbrc
|
||||||
# nusb/kb $1
|
# nusb/kb $1
|
||||||
|
@ -28,13 +25,9 @@ mkdir -p -m 700 '#σc/usbnet'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fn detach {
|
fn detach {
|
||||||
switch($4){
|
# handled /sys/src/9/boot/nusbrc
|
||||||
case *02
|
|
||||||
rm -f '#σ/usbnet/'^$1.*
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
rc < '#σ/usb/usbevent' &
|
rc < '#σ/usb/usbevent' &
|
||||||
}
|
}
|
||||||
|
|
||||||
bind -a '#σ/usb' /dev
|
bind -a '#σ/usb' /dev
|
||||||
bind -a '#σ/usbnet' /net
|
|
||||||
|
|
Loading…
Reference in a new issue