ref: c1b63b53efca6908bd4d9e14da96540e2d0c591a
parent: b818f48f41895754dd9b470be407ba85cfea45bd
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Dec 11 14:49:11 EST 2022
nusbrc: remove service files left by nusb/kb (thanks kristo) Unplugging and then reattaching a keyboard or a mouse causes nusb/kb to sysfatal() since the service file it's trying to create already exists.
--- a/sys/src/9/boot/nusbrc
+++ b/sys/src/9/boot/nusbrc
@@ -66,7 +66,7 @@
}
fn detach {
devs='#σc/sdU'^($1 $5)
- rm -rf '#σc/usb/'^$1.* '#σc/usbnet/'^$1.* $devs $devs.*
+ rm -rf '#σc/usb/'^$1.* '#σc/usb/'^$5.hid '#σc/usbnet/'^$1.* $devs $devs.*
}
rc < '#σ/usb/usbevent' &
}