VirtualBox

Ignore:
Timestamp:
Jan 13, 2009 8:58:15 PM (16 years ago)
Author:
vboxsync
Message:

Installers/Linux: cosmetic patch for init scripts for ArchLinux, contributed by ColdShine

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/installer/vboxadd-timesync.sh

    r14322 r15926  
    4646    system=gentoo
    4747    PIDFILE="/var/run/vboxadd-timesync"
    48  elif [ -f /etc/arch-release ]; then
     48elif [ -f /etc/arch-release ]; then
    4949     system=arch
    5050     PIDFILE="/var/run/vboxadd-timesync"
     
    7070        echo
    7171    }
     72
     73    begin() {
     74        echo -n "$1"
     75    }
    7276fi
    7377
     
    8791        rc_status -v
    8892    }
     93
     94    begin() {
     95        echo -n "$1"
     96    }
    8997fi
    9098
     
    104112    succ_msg() {
    105113        echo " ...done."
     114    }
     115
     116    begin() {
     117        echo -n "$1"
    106118    }
    107119fi
     
    125137    }
    126138
     139    begin() {
     140        echo -n "$1"
     141    }
     142
    127143    if [ "`which $0`" = "/sbin/rc" ]; then
    128144        shift
     
    131147
    132148if [ "$system" = "arch" ]; then
     149    USECOLOR=yes
    133150    . /etc/rc.d/functions
    134151    daemon() {
     
    143160
    144161    fail_msg() {
    145         echo " ...fail!"
    146     }
    147 
    148     succ_msg() {
    149         echo " ...done."
     162        stat_fail
     163    }
     164
     165    succ_msg() {
     166        stat_done
    150167    }
    151168fi
     
    153170if [ "$system" = "slackware" ]; then
    154171    daemon() {
    155         $1 $2
     172        $1 $2
    156173    }
    157174
     
    207224start() {
    208225    if ! test -f $PIDFILE; then
    209         echo -n "Starting VirtualBox host to guest time synchronization ";
     226        begin "Starting VirtualBox host to guest time synchronization ";
    210227        vboxaddrunning || {
    211228            echo "VirtualBox Additions module not loaded!"
     
    222239stop() {
    223240    if test -f $PIDFILE; then
    224         echo -n "Stopping VirtualBox host to guest time synchronisation ";
     241        begin "Stopping VirtualBox host to guest time synchronisation ";
    225242        vboxaddrunning || {
    226243            echo "VirtualBox Additions module not loaded!"
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