summaryrefslogtreecommitdiffstats
path: root/debian/virtualbox.prerm
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--debian/virtualbox.prerm9
1 files changed, 9 insertions, 0 deletions
diff --git a/debian/virtualbox.prerm b/debian/virtualbox.prerm
new file mode 100644
index 00000000..5316cb12
--- /dev/null
+++ b/debian/virtualbox.prerm
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -e
+
+if [ -x "/etc/init.d/virtualbox" ] && [ "$1" = remove ]; then
+ invoke-rc.d virtualbox stop || true
+fi
+
+#DEBHELPER#