udev: fix removing USB entries

QubesOS/qubes-issues#531
pull/6/head
Marek Marczykowski-Górecki 8 years ago
parent cf5f382d7a
commit 93f676d998
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

@ -4,7 +4,7 @@
[ "`echo $TYPE | cut -f1 -d/`" = "9" ] && exit 0
NAME=`basename ${DEVPATH} | tr . _`
QDB_KEY="/qubes-usb-devices/$NAME"
QDB_KEY="/qubes-usb-devices/$NAME/"
qubesdb-rm "$QDB_KEY"
qubesdb-write /qubes-usb-devices ''

Loading…
Cancel
Save