summaryrefslogtreecommitdiffstats
path: root/debian/virtualbox-dkms.postinst
blob: e075f169e3be802f61a4d22e864d498ae81ba426 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

set -e

#DEBHELPER#

if [ "$1" = configure ]; then
	# only restart if VirtualBox isn't running
	if test -x /etc/init.d/virtualbox && ! pidof VBoxSVC > /dev/null; then
		invoke-rc.d virtualbox restart || true
	fi
fi