VirtualBox

Changeset 58326 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Oct 20, 2015 9:34:06 AM (9 years ago)
Author:
vboxsync
Message:

Installers/linux: service output clean-up.

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  
    2727
    2828PATH=$PATH:/bin:/sbin:/usr/sbin
    29 SCRIPTNAME=vboxadd-service
     29SCRIPTNAME=vboxadd-service.sh
    3030
    3131PIDFILE="/var/run/${SCRIPTNAME}"
     
    3939{
    4040    test -n "${2}" && echo "${SCRIPTNAME}: ${1}."
    41     logger "${SCRIPTNAME}: ${1}."
     41    logger -t "${SCRIPTNAME}" "${1}."
    4242}
    4343
    4444succ_msg()
    4545{
    46     logger "${SCRIPTNAME}: done."
     46    logger -t "${SCRIPTNAME}" "${1}."
    4747}
    4848
    4949fail_msg()
    5050{
    51     echo "${SCRIPTNAME}: failed." >&2
    52     logger "${SCRIPTNAME}: failed."
     51    echo "${SCRIPTNAME}: ${1}." >&2
     52    logger -t "${SCRIPTNAME}" "${1}."
    5353}
    5454
     
    9595        daemon $binary --pidfile $PIDFILE > /dev/null
    9696        RETVAL=$?
    97         succ_msg
     97        succ_msg "VirtualBox Guest Addition service started"
    9898    fi
    9999    return $RETVAL
     
    107107        if ! pidof VBoxService > /dev/null 2>&1; then
    108108            rm -f $PIDFILE
    109             succ_msg
     109            succ_msg "VirtualBox Guest Addition service stopped"
    110110        else
    111             fail_msg
     111            fail_msg "VirtualBox Guest Addition service failed to stop"
    112112        fi
    113113    fi
  • trunk/src/VBox/Additions/linux/installer/vboxadd-x11.sh

    r57945 r58326  
    3333CONFIG_DIR="/var/lib/VBoxGuestAdditions"
    3434CONFIG="config"
    35 SCRIPTNAME=vboxadd-x11
     35SCRIPTNAME=vboxadd-x11.sh
    3636
    3737# Check architecture
     
    7878{
    7979    test -n "${2}" && echo "${SCRIPTNAME}: ${1}."
    80     logger "${SCRIPTNAME}: ${1}."
     80    logger -t "${SCRIPTNAME}" "${1}."
    8181}
    8282
    8383succ_msg()
    8484{
    85     logger "${SCRIPTNAME}: done."
     85    logger -t "${SCRIPTNAME}" "${1}."
    8686}
    8787
    8888fail_msg()
    8989{
    90     echo "${SCRIPTNAME}: failed." >&2
    91     logger "${SCRIPTNAME}: failed."
     90    echo "${SCRIPTNAME}: ${1}." >&2
     91    logger -t "${SCRIPTNAME}" "${1}."
    9292}
    9393
     
    377377        ln -s "$lib_dir/$vboxmouse_src" "$modules_dir/input/vboxmouse_drv$driver_ext";;
    378378    esac
    379     succ_msg
     379    succ_msg "$xserver_version modules installed"
    380380
    381381    if test -n "$dox11config"; then
     
    418418            fi
    419419        fi
    420         succ_msg
     420        succ_msg "Window System set up to use the Guest Additions"
    421421        test -n "$generated" &&
    422422            cat << EOF
     
    476476        fail "See the log file $LOG for more information."
    477477    ln -s "$lib_dir/98vboxadd-xclient" /usr/bin/VBoxClient-all 2>/dev/null
    478     succ_msg
     478    succ_msg "Window system drivers installed"
    479479}
    480480
  • trunk/src/VBox/Additions/linux/installer/vboxadd.sh

    r57986 r58326  
    3434MODPROBE=/sbin/modprobe
    3535OLDMODULES="vboxguest vboxadd vboxsf vboxvfs vboxvideo"
    36 SCRIPTNAME=vboxadd
     36SCRIPTNAME=vboxadd.sh
    3737
    3838if $MODPROBE -c 2>/dev/null | grep -q '^allow_unsupported_modules  *0'; then
     
    6767{
    6868    test -n "${2}" && echo "${SCRIPTNAME}: ${1}."
    69     logger "${SCRIPTNAME}: ${1}."
     69    logger -t "${SCRIPTNAME}" "${1}."
    7070}
    7171
    7272succ_msg()
    7373{
    74     logger "${SCRIPTNAME}: done."
    75 }
    76 
    77 fail_msg()
    78 {
    79     echo "${SCRIPTNAME}: failed." >&2
    80     logger "${SCRIPTNAME}: failed."
     74    logger -t "${SCRIPTNAME}" "${1}."
    8175}
    8276
     
    8478{
    8579    echo "${SCRIPTNAME}: failed: ${1}." >&2
    86     logger "${SCRIPTNAME}: ${1}."
     80    logger -t "${SCRIPTNAME}" "${1}."
    8781}
    8882
     
    230224        $MODPROBE vboxsf > /dev/null 2>&1 || {
    231225            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."
    235228                exit 1
    236229            fi
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette