]> git.donarmstrong.com Git - neurodebian.git/blob - debian/neurodebian-guest-additions.preinst
Also for stats report which repo and which job number use our setup
[neurodebian.git] / debian / neurodebian-guest-additions.preinst
1 #!/bin/sh
2
3 set -e
4
5 # summary of how this script can be called:
6 #        * <new-preinst> `install'
7 #        * <new-preinst> `install' <old-version>
8 #        * <new-preinst> `upgrade' <old-version>
9 #        * <old-preinst> `abort-upgrade' <new-version>
10
11
12 case "$1" in
13     install|upgrade)
14         if [ ! -e /dev/vboxguest ]; then
15             echo "There is no /dev/vboxguest -- this does not seem to be running in a VirtualBox machine. This is not supported."
16             exit 1
17         fi
18     ;;
19
20     abort-upgrade)
21     ;;
22
23     *)
24         echo "preinst called with unknown argument \`$1'" >&2
25         exit 1
26     ;;
27 esac
28
29 # dh_installdeb will replace this with shell code automatically
30 # generated by other debhelper scripts.
31
32 #DEBHELPER#
33
34 exit 0