| 1 | #!/bin/sh -e |
| 2 | |
| 3 | VERSION=$(. /usr/lib/xen-common/bin/xen-version); RET=$?; [ $RET -eq 0 ] || exit $RET |
| 4 | |
| 5 | if [ -d "/usr/lib/xen-$VERSION" ]; then |
| 6 | echo "/usr/lib/xen-$VERSION" |
| 7 | else |
| 8 | echo "ERROR: Can't find version $VERSION of xen utils (maybe xen-utils-$VERSION was already removed before rebooting out of Xen $VERSION), bailing out!" >&2 |
| 9 | exit 127 |
| 10 | fi |