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