File: virtualbox-dkms.postinst

package info (click to toggle)
virtualbox 7.1.12-dfsg-1
  • links: PTS, VCS
  • area: contrib
  • in suites:
  • size: 565,676 kB
  • sloc: ansic: 2,330,854; cpp: 2,193,228; asm: 230,777; python: 223,895; xml: 86,771; sh: 25,541; makefile: 8,158; perl: 5,697; java: 5,337; cs: 4,872; pascal: 1,782; javascript: 1,692; objc: 1,131; lex: 931; php: 906; sed: 899; yacc: 707
file content (12 lines) | stat: -rw-r--r-- 226 bytes parent folder | download | duplicates (7)
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