postrm revision d63de4508a08b11f57c307a15eda3cd95485bf2c
53089ab7c84db6fb76c16ca50076c147cda11757eschrock# Copyright (C) 2006-2010 Oracle Corporation
53089ab7c84db6fb76c16ca50076c147cda11757eschrock# This file is part of VirtualBox Open Source Edition (OSE), as
53089ab7c84db6fb76c16ca50076c147cda11757eschrock# available from http://www.virtualbox.org. This file is free software;
53089ab7c84db6fb76c16ca50076c147cda11757eschrock# you can redistribute it and/or modify it under the terms of the GNU
53089ab7c84db6fb76c16ca50076c147cda11757eschrock# General Public License (GPL) as published by the Free Software
53089ab7c84db6fb76c16ca50076c147cda11757eschrock# Foundation, in version 2 as it comes in the "COPYING" file of the
53089ab7c84db6fb76c16ca50076c147cda11757eschrock# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
53089ab7c84db6fb76c16ca50076c147cda11757eschrock# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
53089ab7c84db6fb76c16ca50076c147cda11757eschrock# we can be called with the following arguments (6.5 of Debian policy):
53089ab7c84db6fb76c16ca50076c147cda11757eschrock# remove: (our version): remove our package
53089ab7c84db6fb76c16ca50076c147cda11757eschrock# purge: (our version): purge our package
53089ab7c84db6fb76c16ca50076c147cda11757eschrock# upgrade: (our version): upgrade to a new version
53089ab7c84db6fb76c16ca50076c147cda11757eschrock# failed-upgrade (old version): failed to upgrade to a new version
53089ab7c84db6fb76c16ca50076c147cda11757eschrock# abort-install (our version): aborted install
53089ab7c84db6fb76c16ca50076c147cda11757eschrock# abort-upgrade (old version): aborted upgrade
10e67aa0db0823d5464aafdd681f3c966155c68eMatthew Ahrensif [ "$1" = "purge" -a ! -f /etc/init.d/vboxdrv ] ; then
c3d26abc9ee97b4f60233556aadeb57e0bd30bb9Matthew Ahrens update-rc.d vboxdrv remove >/dev/null || exit $?
53089ab7c84db6fb76c16ca50076c147cda11757eschrockif [ "$1" = "purge" -a ! -f /etc/init.d/vboxnet ] ; then
53089ab7c84db6fb76c16ca50076c147cda11757eschrockif [ "$1" = "purge" -a ! -f /etc/init.d/vboxweb-service ] ; then
53089ab7c84db6fb76c16ca50076c147cda11757eschrock update-rc.d vboxweb-service remove >/dev/null || exit $?
53089ab7c84db6fb76c16ca50076c147cda11757eschrockif [ "$1" = "purge" -a ! -f /etc/init.d/vboxballoonctrl-service ] ; then
53089ab7c84db6fb76c16ca50076c147cda11757eschrock update-rc.d vboxballoonctrl-service remove >/dev/null || exit $?
53089ab7c84db6fb76c16ca50076c147cda11757eschrock# remove installed extension packs