Improved Debian package.
[util-vserver.git] / debian / util-vserver-sysv.prerm
diff --git a/debian/util-vserver-sysv.prerm b/debian/util-vserver-sysv.prerm
new file mode 100755 (executable)
index 0000000..83dd404
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+if test "$1" = remove; then
+    /etc/init.d/vprocunhide stop > /dev/null 2>&1
+    update-rc.d vprocunhide remove
+    update-rc.d util-vserver remove
+    update-rc.d vservers-default remove
+fi