Changeset 58326 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Oct 20, 2015 9:34:06 AM (9 years ago)
- Location:
- trunk/src/VBox/Additions/linux/installer
- Files:
-
- 3 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
Note:
See TracChangeset
for help on using the changeset viewer.