diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2022-12-11 19:49:11 +0000 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2022-12-11 19:49:11 +0000 |
commit | c1b63b53efca6908bd4d9e14da96540e2d0c591a (patch) | |
tree | daefaf843bbf449df554ea0c3e9ed066489afaf3 /sys/src/9/boot | |
parent | b818f48f41895754dd9b470be407ba85cfea45bd (diff) |
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.
Diffstat (limited to 'sys/src/9/boot')
-rwxr-xr-x | sys/src/9/boot/nusbrc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/9/boot/nusbrc b/sys/src/9/boot/nusbrc index 7f31e9060..afbb0503b 100755 --- a/sys/src/9/boot/nusbrc +++ b/sys/src/9/boot/nusbrc @@ -66,7 +66,7 @@ if(! nusb/usbd) } 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' & } |