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