Changeset 15926 in vbox for trunk/src/VBox/Additions/linux/installer/vboxadd-timesync.sh
- Timestamp:
- Jan 13, 2009 8:58:15 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/installer/vboxadd-timesync.sh
r14322 r15926 46 46 system=gentoo 47 47 PIDFILE="/var/run/vboxadd-timesync" 48 48 elif [ -f /etc/arch-release ]; then 49 49 system=arch 50 50 PIDFILE="/var/run/vboxadd-timesync" … … 70 70 echo 71 71 } 72 73 begin() { 74 echo -n "$1" 75 } 72 76 fi 73 77 … … 87 91 rc_status -v 88 92 } 93 94 begin() { 95 echo -n "$1" 96 } 89 97 fi 90 98 … … 104 112 succ_msg() { 105 113 echo " ...done." 114 } 115 116 begin() { 117 echo -n "$1" 106 118 } 107 119 fi … … 125 137 } 126 138 139 begin() { 140 echo -n "$1" 141 } 142 127 143 if [ "`which $0`" = "/sbin/rc" ]; then 128 144 shift … … 131 147 132 148 if [ "$system" = "arch" ]; then 149 USECOLOR=yes 133 150 . /etc/rc.d/functions 134 151 daemon() { … … 143 160 144 161 fail_msg() { 145 echo " ...fail!"146 } 147 148 succ_msg() { 149 echo " ...done."162 stat_fail 163 } 164 165 succ_msg() { 166 stat_done 150 167 } 151 168 fi … … 153 170 if [ "$system" = "slackware" ]; then 154 171 daemon() { 155 172 $1 $2 156 173 } 157 174 … … 207 224 start() { 208 225 if ! test -f $PIDFILE; then 209 echo -n "Starting VirtualBox host to guest time synchronization ";226 begin "Starting VirtualBox host to guest time synchronization "; 210 227 vboxaddrunning || { 211 228 echo "VirtualBox Additions module not loaded!" … … 222 239 stop() { 223 240 if test -f $PIDFILE; then 224 echo -n "Stopping VirtualBox host to guest time synchronisation ";241 begin "Stopping VirtualBox host to guest time synchronisation "; 225 242 vboxaddrunning || { 226 243 echo "VirtualBox Additions module not loaded!"
Note:
See TracChangeset
for help on using the changeset viewer.