Changeset 15926 in vbox
- Timestamp:
- Jan 13, 2009 8:58:15 PM (16 years ago)
- Location:
- trunk/src/VBox/Additions/linux/installer
- Files:
-
- 2 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!" -
trunk/src/VBox/Additions/linux/installer/vboxadd.sh
r15924 r15926 36 36 LOG="/var/log/vboxadd-install.log" 37 37 38 if [ -f /etc/redhat-release ]; then 38 if [ -f /etc/arch-release ]; then 39 system=arch 40 elif [ -f /etc/redhat-release ]; then 39 41 system=redhat 40 42 elif [ -f /etc/SuSE-release ]; then … … 44 46 else 45 47 system=other 48 fi 49 50 if [ "$system" = "arch" ]; then 51 USECOLOR=yes 52 . /etc/rc.d/functions 53 fail_msg() { 54 stat_fail 55 } 56 57 succ_msg() { 58 stat_done 59 } 60 61 begin() { 62 stat_busy "$1" 63 } 46 64 fi 47 65
Note:
See TracChangeset
for help on using the changeset viewer.