Changeset 58326 in vbox for trunk/src/VBox
- Timestamp:
- Oct 20, 2015 9:34:06 AM (9 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/installer/vboxadd-service.sh
r57985 r58326 27 27 28 28 PATH=$PATH:/bin:/sbin:/usr/sbin 29 SCRIPTNAME=vboxadd-service 29 SCRIPTNAME=vboxadd-service.sh 30 30 31 31 PIDFILE="/var/run/${SCRIPTNAME}" … … 39 39 { 40 40 test -n "${2}" && echo "${SCRIPTNAME}: ${1}." 41 logger "${SCRIPTNAME}:${1}."41 logger -t "${SCRIPTNAME}" "${1}." 42 42 } 43 43 44 44 succ_msg() 45 45 { 46 logger "${SCRIPTNAME}: done."46 logger -t "${SCRIPTNAME}" "${1}." 47 47 } 48 48 49 49 fail_msg() 50 50 { 51 echo "${SCRIPTNAME}: failed." >&252 logger "${SCRIPTNAME}: failed."51 echo "${SCRIPTNAME}: ${1}." >&2 52 logger -t "${SCRIPTNAME}" "${1}." 53 53 } 54 54 … … 95 95 daemon $binary --pidfile $PIDFILE > /dev/null 96 96 RETVAL=$? 97 succ_msg 97 succ_msg "VirtualBox Guest Addition service started" 98 98 fi 99 99 return $RETVAL … … 107 107 if ! pidof VBoxService > /dev/null 2>&1; then 108 108 rm -f $PIDFILE 109 succ_msg 109 succ_msg "VirtualBox Guest Addition service stopped" 110 110 else 111 fail_msg 111 fail_msg "VirtualBox Guest Addition service failed to stop" 112 112 fi 113 113 fi -
trunk/src/VBox/Additions/linux/installer/vboxadd-x11.sh
r57945 r58326 33 33 CONFIG_DIR="/var/lib/VBoxGuestAdditions" 34 34 CONFIG="config" 35 SCRIPTNAME=vboxadd-x11 35 SCRIPTNAME=vboxadd-x11.sh 36 36 37 37 # Check architecture … … 78 78 { 79 79 test -n "${2}" && echo "${SCRIPTNAME}: ${1}." 80 logger "${SCRIPTNAME}:${1}."80 logger -t "${SCRIPTNAME}" "${1}." 81 81 } 82 82 83 83 succ_msg() 84 84 { 85 logger "${SCRIPTNAME}: done."85 logger -t "${SCRIPTNAME}" "${1}." 86 86 } 87 87 88 88 fail_msg() 89 89 { 90 echo "${SCRIPTNAME}: failed." >&291 logger "${SCRIPTNAME}: failed."90 echo "${SCRIPTNAME}: ${1}." >&2 91 logger -t "${SCRIPTNAME}" "${1}." 92 92 } 93 93 … … 377 377 ln -s "$lib_dir/$vboxmouse_src" "$modules_dir/input/vboxmouse_drv$driver_ext";; 378 378 esac 379 succ_msg 379 succ_msg "$xserver_version modules installed" 380 380 381 381 if test -n "$dox11config"; then … … 418 418 fi 419 419 fi 420 succ_msg 420 succ_msg "Window System set up to use the Guest Additions" 421 421 test -n "$generated" && 422 422 cat << EOF … … 476 476 fail "See the log file $LOG for more information." 477 477 ln -s "$lib_dir/98vboxadd-xclient" /usr/bin/VBoxClient-all 2>/dev/null 478 succ_msg 478 succ_msg "Window system drivers installed" 479 479 } 480 480 -
trunk/src/VBox/Additions/linux/installer/vboxadd.sh
r57986 r58326 34 34 MODPROBE=/sbin/modprobe 35 35 OLDMODULES="vboxguest vboxadd vboxsf vboxvfs vboxvideo" 36 SCRIPTNAME=vboxadd 36 SCRIPTNAME=vboxadd.sh 37 37 38 38 if $MODPROBE -c 2>/dev/null | grep -q '^allow_unsupported_modules *0'; then … … 67 67 { 68 68 test -n "${2}" && echo "${SCRIPTNAME}: ${1}." 69 logger "${SCRIPTNAME}:${1}."69 logger -t "${SCRIPTNAME}" "${1}." 70 70 } 71 71 72 72 succ_msg() 73 73 { 74 logger "${SCRIPTNAME}: done." 75 } 76 77 fail_msg() 78 { 79 echo "${SCRIPTNAME}: failed." >&2 80 logger "${SCRIPTNAME}: failed." 74 logger -t "${SCRIPTNAME}" "${1}." 81 75 } 82 76 … … 84 78 { 85 79 echo "${SCRIPTNAME}: failed: ${1}." >&2 86 logger "${SCRIPTNAME}:${1}."80 logger -t "${SCRIPTNAME}" "${1}." 87 81 } 88 82 … … 230 224 $MODPROBE vboxsf > /dev/null 2>&1 || { 231 225 if dmesg | grep "vboxConnect failed" > /dev/null 2>&1; then 232 fail_msg 233 echo "Unable to start shared folders support. Make sure that your VirtualBox build" 234 echo "supports this feature." 226 show_error "Unable to start shared folders support. Make sure that your VirtualBox build" 227 show_error "supports this feature." 235 228 exit 1 236 229 fi -
trunk/src/VBox/Installer/linux/vboxautostart-service.sh
r57985 r58326 27 27 28 28 PATH=$PATH:/bin:/sbin:/usr/sbin 29 SCRIPTNAME=vboxautostart-service 29 SCRIPTNAME=vboxautostart-service.sh 30 30 31 31 [ -f /etc/debian_release -a -f /lib/lsb/init-functions ] || NOLSB=yes … … 52 52 { 53 53 test -n "${2}" && echo "${SCRIPTNAME}: ${1}." 54 logger "${SCRIPTNAME}:${1}."54 logger -t "${SCRIPTNAME}" "${1}." 55 55 } 56 56 57 57 succ_msg() 58 58 { 59 logger "${SCRIPTNAME}: done."59 logger -t "${SCRIPTNAME}" "${1}." 60 60 } 61 61 … … 63 63 { 64 64 echo "${SCRIPTNAME}: failed: ${1}." >&2 65 logger "${SCRIPTNAME}:failed: ${1}."65 logger -t "${SCRIPTNAME}" "failed: ${1}." 66 66 } 67 67 -
trunk/src/VBox/Installer/linux/vboxballoonctrl-service.sh
r57985 r58326 27 27 28 28 PATH=$PATH:/bin:/sbin:/usr/sbin 29 SCRIPTNAME=vboxballoonctrl-service 29 SCRIPTNAME=vboxballoonctrl-service.sh 30 30 31 31 [ -f /etc/vbox/vbox.cfg ] && . /etc/vbox/vbox.cfg … … 53 53 { 54 54 test -n "${2}" && echo "${SCRIPTNAME}: ${1}." 55 logger "${SCRIPTNAME}:${1}."55 logger -t "${SCRIPTNAME}" "${1}." 56 56 } 57 57 58 58 succ_msg() 59 59 { 60 logger "${SCRIPTNAME}: done."60 logger -t "${SCRIPTNAME}" "${1}." 61 61 } 62 62 … … 64 64 { 65 65 echo "${SCRIPTNAME}: failed: ${1}." >&2 66 logger "${SCRIPTNAME}:failed: ${1}."66 logger -t "${SCRIPTNAME}" "failed: ${1}." 67 67 } 68 68 … … 141 141 echo "$PID" > $PIDFILE 142 142 RETVAL=0 143 succ_msg 143 succ_msg "VirtualBox watchdog service started" 144 144 else 145 145 RETVAL=1 146 fail_msg 146 fail_msg "VirtualBox watchdog service failed to start" 147 147 fi 148 148 fi … … 157 157 if ! pidof $binary > /dev/null 2>&1; then 158 158 rm -f $PIDFILE 159 succ_msg 159 succ_msg "VirtualBox watchdog service stopped" 160 160 else 161 fail_msg 161 fail_msg "VirtualBox watchdog service failed to stop" 162 162 fi 163 163 fi -
trunk/src/VBox/Installer/linux/vboxdrv.sh
r58324 r58326 31 31 LOG="/var/log/vbox-install.log" 32 32 MODPROBE=/sbin/modprobe 33 SCRIPTNAME=vboxdrv 33 SCRIPTNAME=vboxdrv.sh 34 34 35 35 # The below is GNU-specific. See VBox.sh for the longer Solaris/OS X version. … … 91 91 { 92 92 test -n "${2}" && echo "${SCRIPTNAME}: ${1}." 93 logger "${SCRIPTNAME}:${1}."93 logger -t "${SCRIPTNAME}" "${1}." 94 94 } 95 95 96 96 succ_msg() 97 97 { 98 logger "${SCRIPTNAME}: done."98 logger -t "${SCRIPTNAME}" "${1}." 99 99 } 100 100 … … 102 102 { 103 103 echo "${SCRIPTNAME}: failed: ${1}." >&2 104 logger "${SCRIPTNAME}:failed: ${1}."104 logger -t "${SCRIPTNAME}" "failed: ${1}." 105 105 } 106 106 … … 310 310 chown root:vboxusers /dev/vboxusb 2>/dev/null 311 311 fi 312 succ_msg 312 succ_msg "VirtualBox services started" 313 313 } 314 314 … … 346 346 fi 347 347 fi 348 succ_msg 348 succ_msg "VirtualBox services stopped" 349 349 } 350 350 … … 370 370 $VBOXMANAGE --nologo controlvm $v poweroff 371 371 done 372 succ_msg 372 succ_msg "Remaining VMs powered off" 373 373 elif [ "$SHUTDOWN" = "acpibutton" ]; then 374 374 begin_msg "Sending ACPI power button event to remaining VMs" … … 377 377 wait=30 378 378 done 379 succ_msg 379 succ_msg "ACPI power button event sent to remaining VMs" 380 380 elif [ "$SHUTDOWN" = "savestate" ]; then 381 381 begin_msg "Saving state of remaining VMs" … … 383 383 $VBOXMANAGE --nologo controlvm $v savestate 384 384 done 385 succ_msg 385 succ_msg "State of remaining VMs saved" 386 386 fi 387 387 fi … … 392 392 begin_msg "Waiting for $wait seconds for VM shutdown" 393 393 sleep $wait 394 succ_msg 394 succ_msg "Waited for $wait seconds for VM shutdown" 395 395 fi 396 396 } … … 448 448 rm -f /etc/vbox/module_not_compiled 449 449 depmod -a 450 succ_msg 450 succ_msg "VirtualBox kernel modules built" 451 451 } 452 452 -
trunk/src/VBox/Installer/linux/vboxweb-service.sh
r57985 r58326 27 27 28 28 PATH=$PATH:/bin:/sbin:/usr/sbin 29 SCRIPTNAME=vboxweb-service 29 SCRIPTNAME=vboxweb-service.sh 30 30 31 31 [ -f /etc/vbox/vbox.cfg ] && . /etc/vbox/vbox.cfg … … 55 55 { 56 56 test -n "${2}" && echo "${SCRIPTNAME}: ${1}." 57 logger "${SCRIPTNAME}:${1}."57 logger -t "${SCRIPTNAME}" "${1}." 58 58 } 59 59 60 60 succ_msg() 61 61 { 62 logger "${SCRIPTNAME}: done."62 logger -t "${SCRIPTNAME}" "${1}." 63 63 } 64 64 … … 66 66 { 67 67 echo "${SCRIPTNAME}: failed: ${1}." >&2 68 logger "${SCRIPTNAME}:failed: ${1}."68 logger -t "${SCRIPTNAME}" "failed: ${1}." 69 69 } 70 70 … … 154 154 echo "$PID" > $PIDFILE 155 155 RETVAL=0 156 succ_msg 156 succ_msg "VirtualBox web service started" 157 157 else 158 158 RETVAL=1 159 fail_msg 159 fail_msg "VirtualBox web service failed to start" 160 160 fi 161 161 fi … … 170 170 if ! pidof $binary > /dev/null 2>&1; then 171 171 rm -f $PIDFILE 172 succ_msg 172 succ_msg "VirtualBox web service stopped" 173 173 else 174 fail_msg 174 fail_msg "VirtualBox web service failed to stop" 175 175 fi 176 176 fi
Note:
See TracChangeset
for help on using the changeset viewer.