~ubuntu-branches/ubuntu/wily/xen-common/wily

« back to all changes in this revision

Viewing changes to debian/scripts/xen-dir

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2012-02-06 10:49:43 UTC
  • mfrom: (10.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20120206104943-fo54o8stjp2ikglj
Tags: 4.1.2-1ubuntu1
* Merge from Debian testing.  Remaining changes:
  - Upate maintainer according to spec.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh -e
 
2
VERBOSE=1
 
3
 
 
4
VERSION=$(. /usr/lib/xen-common/bin/xen-version); RET=$?; [ $RET -eq 0 ] || exit $RET
 
5
 
 
6
if [ -d "/usr/lib/xen-$VERSION" ]; then
 
7
    echo "/usr/lib/xen-$VERSION"
 
8
elif [ -d "/usr/lib/xen-default" ]; then
 
9
    echo "WARING:  Can't find version $VERSION of xen utils, fallback to default version!" >&2
 
10
    echo "/usr/lib/xen-default"
 
11
else
 
12
    echo "ERROR:  Can't find default version of xen utils, bailing out!" >&2
 
13
    exit 127
 
14
fi