core-admin/dom0/aux-tools/udev-block-cleanup
2013-03-15 23:03:28 +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