qubes-core-admin-linux/udev/udev-block-cleanup

9 lines
153 B
Plaintext
Raw Normal View History

2013-03-16 18:52:16 +00:00
#!/bin/sh
DEVID=$[ $MAJOR * 256 + $MINOR ]
XS_PATH="device/vbd/$DEVID"
# Double check that DEVID is not empty
[ -n "$DEVID" ] && xenstore-rm $XS_PATH