Changeset 67054 in vbox for trunk/src/VBox
- Timestamp:
- May 24, 2017 8:36:39 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/linux/install.sh
r63645 r67054 15 15 # hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 16 16 # 17 18 # Testing: 19 # * After successful installation, 0 is returned if the vboxdrv module version 20 # built matches the one loaded. 21 # * If the kernel modules cannot be built (run the installer with KERN_DIR=/) or 22 # loaded (run with KERN_DIR=/lib/modules/<installed non-current version>/build) 23 # then 1 is returned. 17 24 18 25 PATH=$PATH:/bin:/sbin:/usr/sbin … … 53 60 VBOXUSB_GRP=$GROUPNAME 54 61 62 ## Were we able to stop any previously running Additions kernel modules? 63 MODULES_STOPPED=1 64 55 65 56 66 ############################################################################## … … 381 391 fi 382 392 "${INSTALLATION_DIR}/prerm-common.sh" >> "${LOG}" 393 394 # Now check whether the kernel modules were stopped. 395 lsmod | grep -q vboxdrv && MODULES_STOPPED= 396 383 397 "${INSTALLATION_DIR}/postinst-common.sh" ${START_SERVICES} >> "${LOG}" 384 398 … … 393 407 info "We hope that you enjoy using VirtualBox." 394 408 info "" 409 410 # And do a final test as to whether the kernel modules were properly created 411 # and loaded. Return 0 if both are true, 1 if not. 412 test -n "${MODULES_STOPPED}" && 413 modinfo vboxdrv >/dev/null 2>&1 && 414 lsmod | grep -q vboxdrv || 415 abort "The installation log file is at ${LOG}." 416 395 417 log "Installation successful" 396 418 elif [ "$ACTION" = "uninstall" ]; then
Note:
See TracChangeset
for help on using the changeset viewer.