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 :) Grs, Heinz
--- vboxadd-timesync.sh 2008-09-24 21:36:35.540811469 +0200
+++ vboxadd-timesync.sh 2008-09-20 15:43:29.000000000 +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,34 @@
fi
fi
+if [ "$system" = "slackware" ]; then
+ daemon() {
+ $1 $2
+ }
+
+ killproc() {
+ killall $1
+ }
+
+ 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!"
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ vbox-dev mailing list [email protected] http://vbox.innotek.de/mailman/listinfo/vbox-dev
