diff options
author | stanley lieber <stanley.lieber@gmail.com> | 2012-01-05 12:36:36 -0600 |
---|---|---|
committer | stanley lieber <stanley.lieber@gmail.com> | 2012-01-05 12:36:36 -0600 |
commit | 7b6d8b29b74200ef3ce6fbad3f3e33bc23f1734e (patch) | |
tree | db13d4a6e4461106e374204d1d2cf01389885112 /rc/bin/nusbrc | |
parent | b63b2a828499938d18945869383694e19de02bdd (diff) | |
download | plan9front-7b6d8b29b74200ef3ce6fbad3f3e33bc23f1734e.tar.xz |
nusbrc: revert
Diffstat (limited to 'rc/bin/nusbrc')
-rwxr-xr-x | rc/bin/nusbrc | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/rc/bin/nusbrc b/rc/bin/nusbrc index 71fe5734e..a9efcf8a6 100755 --- a/rc/bin/nusbrc +++ b/rc/bin/nusbrc @@ -5,8 +5,6 @@ if(! test -e '#σ/usb/usbevent') if(! bind -a '#u' /dev) exit -mkdir -p -m 700 '#σc/usbnet' - @{ rfork ne fn attach { @@ -16,7 +14,6 @@ mkdir -p -m 700 '#σc/usbnet' case *02 # serial and ethernet nusb/serial $1 - nusb/ether $1 case *03 # handled /sys/src/9/boot/nusbrc # nusb/kb $1 @@ -28,13 +25,9 @@ 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 |