udev: fix removing USB entries

QubesOS/qubes-issues#531
This commit is contained in:
Marek Marczykowski-Górecki 2016-06-01 14:04:10 +02:00
parent cf5f382d7a
commit 93f676d998
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

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