Heinz Wiesinger wrote:
> Hi!
>
> I spent some time in creating packages for the virtualbox-guest-additions
> for Slackware and stumbled over a not working vboxadd-timesync.sh. The
> attached patch (against the script in 2.0.2) does add support for Slackware
> to that script. Testet on my system, works fine.
>
> Any comments are welcome :)
>

My bad. New version fixes stop() and status().

Grs,
Heinz
--- vboxadd-timesync.sh	2008-06-25 20:09:33.000000000 +0200
+++ vboxadd-timesync.sh.new	2008-09-24 22:17:54.941071664 +0200
@@ -45,6 +45,9 @@
 elif [ -f /etc/gentoo-release ]; then
     system=gentoo
     PIDFILE="/var/run/vboxadd-timesync"
+elif [ -f /etc/slackware-version ]; then
+    system=slackware
+    PIDFILE="/var/run/vboxadd-timesync"
 else
     system=other
     if [ -d /var/run -a -w /var/run ]; then
@@ -123,6 +126,35 @@
     fi
 fi
 
+if [ "$system" = "slackware" ]; then
+    daemon() {
+	$1 $2
+    }
+
+    killproc() {
+        killall $1
+        rm -f $PIDFILE
+    }
+
+    fail_msg() {
+        echo " ...fail!"
+    }
+
+    succ_msg() {
+        echo " ...done."
+    }
+
+    status() {
+        echo -n "Checking for vboxadd-timesync"
+        if [ -f /var/run/$1 ]; then
+            echo " ...running"
+        else
+            echo " ...not running"
+        fi
+    }
+
+fi
+
 if [ "$system" = "other" ]; then
     fail_msg() {
         echo " ...fail!"

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
vbox-dev mailing list
[email protected]
http://vbox.innotek.de/mailman/listinfo/vbox-dev

Reply via email to