Changeset 58241 in vbox for trunk/src/VBox/Installer/linux/debian/postinst
- Timestamp:
- Oct 14, 2015 1:46:43 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 103408
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/linux/debian/postinst
r58186 r58241 17 17 # abort-remove: (our version): removing this package failed 18 18 # abort-deconfigure: (our version): error during resolving conflicts 19 20 ## @todo Do we really gain anything from not just executing everything 21 ## unconditionally? 19 22 20 23 LOG="/var/log/vbox-install.log" … … 78 81 if test "${INSTALL_NO_VBOXDRV}" = 1; then 79 82 POSTINST_START=--nostart 80 # if INSTALL_NO_VBOXDRV is set to 1, remove all shipped modules81 if [ "$1" = "configure" ]; then82 rm -f /lib/modules/*/misc/vboxdrv.ko83 rm -f /lib/modules/*/misc/vboxnetflt.ko84 rm -f /lib/modules/*/misc/vboxnetadp.ko85 rm -f /lib/modules/*/misc/vboxpci.ko86 fi87 83 else 88 84 POSTINST_START= 89 # Disable module compilation with INSTALL_NO_VBOXDRV=1 in /etc/default/virtualbox90 if [ ! -f /lib/modules/`uname -r`/misc/vboxdrv.ko ]; then91 if [ "$1" = "configure" ]; then92 db_get virtualbox/module-compilation-allowed93 if [ "$RET" = "false" ]; then94 cat << EOF95 Unable to find a precompiled module for the current kernel96 though module compilation denied by debconf setting.97 EOF98 POSTINST_START=--nostart99 else100 db_input low virtualbox/module-compilation-allowed || true101 db_go || true102 db_get virtualbox/module-compilation-allowed103 if [ "$RET" = "false" ]; then104 POSTINST_START=--nostart105 fi106 fi107 fi # $1 = "configure"108 fi109 85 fi 110 86
Note:
See TracChangeset
for help on using the changeset viewer.