postinst revision a0a9f39e8864357c2e1e61106958411240f5bf6b
#
# Copyright (C) 2006-2007 Sun Microsystems, Inc.
#
# 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.
#
# for debconf
db_version 2.0
# remove old cruft
echo "Found old version of /etc/init.d/vboxdrv.sh, removing."
fi
echo "Found old version of /etc/init.d/virtualbox, removing."
fi
fi
# install udev rule
echo 'KERNEL="vboxdrv", NAME="vboxdrv", OWNER="root", GROUP="root", MODE="0600"' \
else
echo 'KERNEL=="vboxdrv", NAME="vboxdrv", OWNER="root", GROUP="root", MODE="0600"' \
fi
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!
fi
fi
# success
cat << EOF
Success!
EOF
fi
fi
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
#DEBHELPER#
exit 0