qubes-core-admin-linux/udev/udev-block-cleanup
2013-03-16 19:52:16 +01:00

9 lines
153 B
Bash
Executable File

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