--- vboxadd-timesync.sh	2008-11-18 19:40:06 +0000
+++ vboxadd-timesync.sh	2008-12-08 12:00:02 +0000
@@ -45,7 +45,7 @@
 elif [ -f /etc/gentoo-release ]; then
     system=gentoo
     PIDFILE="/var/run/vboxadd-timesync"
- elif [ -f /etc/arch-release ]; then
+elif [ -f /etc/arch-release ]; then
     system=arch
     PIDFILE="/var/run/vboxadd-timesync"
 elif [ -f /etc/slackware-version ]; then
@@ -69,6 +69,10 @@
         echo_success
         echo
     }
+
+    begin() {
+        echo -n "$1"
+    }
 fi
 
 if [ "$system" = "suse" ]; then
@@ -86,6 +90,10 @@
         rc_reset
         rc_status -v
     }
+
+    begin() {
+        echo -n "$1"
+    }
 fi
 
 if [ "$system" = "debian" ]; then
@@ -104,6 +112,10 @@
     succ_msg() {
         echo " ...done."
     }
+
+    begin() {
+        echo -n "$1"
+    }
 fi
 
 if [ "$system" = "gentoo" ]; then
@@ -124,12 +136,17 @@
         echo " ...done."
     }
 
+    begin() {
+        echo -n "$1"
+    }
+
     if [ "`which $0`" = "/sbin/rc" ]; then
         shift
     fi
 fi
 
 if [ "$system" = "arch" ]; then
+    USECOLOR=yes
     . /etc/rc.d/functions
     daemon() {
         $@
@@ -142,17 +159,21 @@
     }
 
     fail_msg() {
-        echo " ...fail!"
+        stat_fail
     }
 
     succ_msg() {
-        echo " ...done."
+        stat_done
+    }
+
+    begin() {
+        stat_busy "$1"
     }
 fi
  
 if [ "$system" = "slackware" ]; then
     daemon() {
-        $1 $2
+	$1 $2
     }
 
     killproc() {
@@ -206,7 +227,7 @@
 
 start() {
     if ! test -f $PIDFILE; then
-        echo -n "Starting VirtualBox host to guest time synchronization ";
+        begin "Starting VirtualBox host to guest time synchronization ";
         vboxaddrunning || {
             echo "VirtualBox Additions module not loaded!"
             exit 1
@@ -221,7 +242,7 @@
 
 stop() {
     if test -f $PIDFILE; then
-        echo -n "Stopping VirtualBox host to guest time synchronisation ";
+        begin "Stopping VirtualBox host to guest time synchronisation ";
         vboxaddrunning || {
             echo "VirtualBox Additions module not loaded!"
             exit 1
