postinst.in revision 20fc4a350a4a8e56ffaac6cf57dcd677a7ac36c5
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# Copyright (C) 2006-2012 Oracle Corporation
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# This file is part of VirtualBox Open Source Edition (OSE), as
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# available from http://www.virtualbox.org. This file is free software;
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# you can redistribute it and/or modify it under the terms of the GNU
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# General Public License (GPL) as published by the Free Software
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# Foundation, in version 2 as it comes in the "COPYING" file of the
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# we can be called with the following arguments (6.5 of Debian policy):
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# configure: (our version): installing/configuring new version
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# abort-upgrade: (old version): upgrading to a new version failed
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# abort-remove: (our version): removing this package failed
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# abort-deconfigure: (our version): error during resolving conflicts
d10b60270f0c0eeb87f45002a010cff8ba2126b1vboxsync[ -r /etc/default/virtualbox ] && . /etc/default/virtualbox
d10b60270f0c0eeb87f45002a010cff8ba2126b1vboxsync # for debconf
d10b60270f0c0eeb87f45002a010cff8ba2126b1vboxsync # remove old cruft
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync echo "Found old version of /etc/init.d/vboxdrv.sh, removing."
# create users groups (disable with INSTALL_NO_GROUP=1 in /etc/default/virtualbox)
db_go || true
# Start vboxdrv/vboxballoonctrl/vboxweb-service manually as we use our own error handling in postrm
# Disable module compilation with INSTALL_NO_VBOXDRV=1 in /etc/default/virtualbox
cat << EOF
db_go || true
if [ -n "$DKMS" ]; then
if [ -x "/etc/init.d/vboxballoonctrl-service" ]; then
if [ -x "/etc/init.d/vboxautostart-service" ]; then
if [ -x "/etc/init.d/vboxweb-service" ]; then