postinst.in revision 0887a65d2e1f7d938381bed11e859caed56cb47e
#
# Copyright (C) 2006-2010 Oracle Corporation
#
# This file is part of VirtualBox Open Source Edition (OSE), as
# available from http://www.virtualbox.org. This file is free software;
# General Public License as published by the Free Software Foundation,
# in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
# distribution. VirtualBox OSE is distributed in the hope that it will
# be useful, but WITHOUT ANY WARRANTY of any kind.
#
# we can be called with the following arguments:
# configure: (our version): installing/configuring new version
# abort-upgrade: (old version): upgrading to a new version failed
# abort-remove: (our version): removing this package failed
# abort-deconfigure: (our version): error during resolving conflicts
if [ "$1" = "configure" ]; then
# for debconf
db_version 2.0
# remove old cruft
echo "Found old version of /etc/init.d/vboxdrv.sh, removing."
fi
fi
# install udev rule
udev_call=""
if [ $? -eq 0 ]; then
else
if [ $? -eq 0 ]; then
fi
fi
udev_fix="="
if [ "${udev_call}" != "" ]; then
udev_fix=""
fi
fi
echo "KERNEL=${udev_fix}\"vboxdrv\", NAME=\"vboxdrv\", OWNER=\"root\", GROUP=\"root\", MODE=\"0600\"" \
fi
# create users groups
db_go || true
if [ "$RET" = "false" ]; then
cat << EOF
Unable to find a precompiled module for the current kernel
though module compilation denied by debconf setting.
EOF
else
db_go || true
if [ "$RET" = "true" ]; then
# Compile module. Don't show a message box here if everything works well.
cat << EOF
Messages emitted during module compilation will be logged to $LOG.
EOF
db_go || true
# don't abort the installation!
else
db_go || true
# don't abort the installation!
else
db_go || true
# don't abort the installation!
fi
fi
fi
# cleanup
# success
cat << EOF
Success!
EOF
fi
fi
fi
fi
# Register at DKMS. If the modules were built above, they are already registered
if [ -n "$REGISTER_DKMS" ]; then
if [ -n "$DKMS" ]; then
fi
done
done
fi
fi
# There might be an old module active (e.g. manually loaded)
fi
# The starters need to be Suid root. They drop the privileges before starting
# the real frontend.
fi
fi
fi
fi
fi
fi # $1 = "configure"
#DEBHELPER#
exit 0