summaryrefslogtreecommitdiffstats
path: root/debian/virtualbox-guest-x11.preinst
blob: 3d4bebdeaf12a8c611194327f00cb59a46346ba9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

set -e

#DEBHELPER#

case "$1" in
  install|upgrade)
	if dpkg --compare-versions "$2" gt "4.1.22-dfsg" && dpkg --compare-versions "$2" lt "4.2.10-dfsg"; then
		# hack to change runlevels from default to S
		update-rc.d -f virtualbox-guest-x11 remove > /dev/null || true
	fi
  ;;
esac