Changeset 57986 in vbox for trunk/src/VBox/Installer/linux/debian
- Timestamp:
- Oct 1, 2015 1:05:50 PM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 103000
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/linux/debian/postinst.in
r57969 r57986 78 78 fi 79 79 fi 80 81 # if INSTALL_NO_VBOXDRV is set to 1, remove all shipped modules82 if [ "$INSTALL_NO_VBOXDRV" = "1" ]; then83 rm -f /lib/modules/*/misc/vboxdrv.ko84 rm -f /lib/modules/*/misc/vboxnetflt.ko85 rm -f /lib/modules/*/misc/vboxnetadp.ko86 fi87 88 80 fi # $1 = "configure" 89 81 90 82 #DEBHELPER# 91 83 92 BUILD_MODULES=0 93 REGISTER_MODULES=1 94 # Disable module compilation with INSTALL_NO_VBOXDRV=1 in /etc/default/virtualbox 95 if [ ! -f /lib/modules/`uname -r`/misc/vboxdrv.ko ]; then 96 REGISTER_MODULES=0 84 if test "${INSTALL_NO_VBOXDRV}" = 1; then 85 POSTINST_START= 86 # if INSTALL_NO_VBOXDRV is set to 1, remove all shipped modules 97 87 if [ "$1" = "configure" ]; then 98 if [ "$INSTALL_NO_VBOXDRV" != "1" ]; then 88 rm -f /lib/modules/*/misc/vboxdrv.ko 89 rm -f /lib/modules/*/misc/vboxnetflt.ko 90 rm -f /lib/modules/*/misc/vboxnetadp.ko 91 rm -f /lib/modules/*/misc/vboxpci.ko 92 fi 93 else 94 POSTINST_START=--start 95 # Disable module compilation with INSTALL_NO_VBOXDRV=1 in /etc/default/virtualbox 96 if [ ! -f /lib/modules/`uname -r`/misc/vboxdrv.ko ]; then 97 if [ "$1" = "configure" ]; then 99 98 db_get virtualbox/module-compilation-allowed 100 99 if [ "$RET" = "false" ]; then … … 103 102 though module compilation denied by debconf setting. 104 103 EOF 104 POSTINST_START= 105 105 else 106 106 db_input low virtualbox/module-compilation-allowed || true 107 107 db_go || true 108 108 db_get virtualbox/module-compilation-allowed 109 if [ "$RET" = " true" ]; then110 BUILD_MODULES=1109 if [ "$RET" = "false" ]; then 110 POSTINST_START= 111 111 fi 112 112 fi 113 fi 114 fi # $1 = "configure" 115 fi 116 117 if [ $BUILD_MODULES -eq 1 ]; then 118 /usr/lib/virtualbox/vboxdrv.sh setup || true 113 fi # $1 = "configure" 114 fi 119 115 fi 120 116 121 117 # Install and start the new service scripts. 122 POSTINST_START=--start123 test "${INSTALL_NO_VBOXDRV}" = 1 && POSTINST_START=124 118 /usr/lib/virtualbox/prerm-common.sh || true 125 119 /usr/lib/virtualbox/postinst-common.sh /usr/lib/virtualbox "${POSTINST_START}" > /dev/null || true
Note:
See TracChangeset
for help on using the changeset viewer.