Changeset 16965 in vbox for trunk/src/VBox/Additions/linux
- Timestamp:
- Feb 20, 2009 8:54:40 AM (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
r16947 r16965 52 52 system=slackware 53 53 PIDFILE="/var/run/vboxadd-timesync" 54 elif [ -f /etc/lfs-release ]; then 55 system=lfs 56 PIDFILE="/var/run/vboxadd-timesync.pid" 54 57 else 55 58 system=other … … 195 198 } 196 199 200 fi 201 202 if [ "$system" = "lfs" ]; then 203 . /etc/rc.d/init.d/functions 204 daemon() { 205 loadproc $1 $2 206 } 207 208 fail_msg() { 209 echo_failure 210 } 211 212 succ_msg() { 213 echo_ok 214 } 215 216 begin() { 217 echo $1 218 } 219 220 status() { 221 statusproc $1 222 } 197 223 fi 198 224 … … 231 257 daemon $binary --daemonize 232 258 RETVAL=$? 233 test $RETVAL -eq 0 && touch$PIDFILE259 test $RETVAL -eq 0 && echo `pidof vboxadd-timesync` > $PIDFILE 234 260 succ_msg 235 261 fi … … 258 284 status() { 259 285 echo -n "Checking for vboxadd-timesync" 260 if [ -f /var/run/$1]; then286 if [ -f $PIDFILE ]; then 261 287 echo " ...running" 262 288 else -
trunk/src/VBox/Additions/linux/installer/vboxadd.sh
r15926 r16965 44 44 elif [ -f /etc/gentoo-release ]; then 45 45 system=gentoo 46 elif [ -f /etc/lfs-release -a -d /etc/rc.d/init.d ]; then 47 system=lfs 46 48 else 47 49 system=other … … 112 114 shift 113 115 fi 116 fi 117 118 if [ "$system" = "lfs" ]; then 119 . /etc/rc.d/init.d/functions 120 fail_msg() { 121 echo_failure 122 } 123 succ_msg() { 124 echo_ok 125 } 126 begin() { 127 echo $1 128 } 114 129 fi 115 130
Note:
See TracChangeset
for help on using the changeset viewer.