]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/src/9/boot/nusbrc
changed dev/rmdev to attach/detach, fixed nusbrc
[plan9front.git] / sys / src / 9 / boot / nusbrc
index 60136d346c42506a23e32384bef59022439120d9..c5cc58f0d3273a38be87f24400e05b106c5bc6f2 100644 (file)
@@ -8,7 +8,7 @@ if(! nusb/usbd)
 
 @{
        rfork ne
-       fn dev {
+       fn attach {
                switch($4){
                case *03
                        nusb/kb $1
@@ -16,8 +16,8 @@ if(! nusb/usbd)
                        nusb/disk $1
                }
        }
-       fn rmdev {
-               rm -f '#σc/usb/'*'-'^$2
+       fn detach {
+               rm '#σc/usb/'*'-'^$1
        }
        rc < '#σ/usb/usbevent' &
 }