Changeset 66504 in vbox for trunk/src/VBox/Additions/linux
- Timestamp:
- Apr 10, 2017 4:57:41 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/installer/install.sh.in
r66387 r66504 17 17 # 18 18 19 # Testing: 20 # * After successful installation, 0 is returned if the vboxguest module version 21 # built matches the one loaded and 2 is returned otherwise. E.g. VBoxClient 22 # running will prevent vboxguest reloading. 23 # * If the kernel modules cannot be built (run the installer with KERN_DIR=/) or 24 # loaded (run with KERN_VER=<installed non-current version>) then 1 is returned. 25 19 26 PATH=$PATH:/bin:/sbin:/usr/sbin 20 27 … … 36 43 SELF=$1 37 44 LOGFILE="/var/log/vboxadd-install.log" 45 46 ## Were we able to stop any previously running Additions kernel modules? 47 MODULES_STOPPED=1 38 48 39 49 . "./$ROUTINES" … … 320 330 test "$ACTION" = "install" || exit 0 321 331 332 # Now check whether the kernel modules were stopped. 333 lsmod | grep -q vboxguest && MODULES_STOPPED= 334 322 335 # Choose a proper umask 323 336 umask 022 … … 564 577 echo >&2 " ldconfig" 565 578 fi 579 580 # And do a final test as to whether the kernel modules were properly created 581 # and loaded. Return 0 if both are true, 1 if the modules could not be built 582 # or loaded (except due to already running older modules) and 2 if already 583 # running modules probably prevented new ones from loading. vboxvideo is 584 # currently not tested. 585 # Assume that we have already printed enough messages by now and stay silent. 586 modinfo vboxguest >/dev/null 2>&1 || exit 1 587 lsmod | grep -q vboxguest || exit 1 588 test -n "${MODULES_STOPPED}" || exit 2 589 exit 0
Note:
See TracChangeset
for help on using the changeset viewer.