postinst revision 6be66de4257f4f564e35f7b8ee57a282e3cf3e96
# read INSTALL_DIR/src
# 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
# install udev rule
if [ "$udev_out" = "" ]; then
fi
echo 'KERNEL="vboxdrv", NAME="vboxdrv", OWNER="root", GROUP="vboxusers", MODE="0660"' \
else
echo 'KERNEL=="vboxdrv", NAME="vboxdrv", OWNER="root", GROUP="vboxusers", MODE="0660"' \
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
# success
cat << EOF
Success!
EOF
fi
fi
fi
fi
#DEBHELPER#
exit 0