qubes-linux-utils/udev/udev-block-cleanup

9 lines
153 B
Plaintext
Raw Permalink Normal View History

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