VirtualBox

Changeset 14322 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Nov 18, 2008 6:40:06 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
39521
Message:

Additions/linux: fixed the timesync init.d script to work with Arch Linux, thanks to Jelle Geerts for the patch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/installer/vboxadd-timesync.sh

    r13154 r14322  
    4646    system=gentoo
    4747    PIDFILE="/var/run/vboxadd-timesync"
     48 elif [ -f /etc/arch-release ]; then
     49     system=arch
     50     PIDFILE="/var/run/vboxadd-timesync"
    4851elif [ -f /etc/slackware-version ]; then
    4952    system=slackware
     
    127130fi
    128131
     132if [ "$system" = "arch" ]; then
     133    . /etc/rc.d/functions
     134    daemon() {
     135        $@
     136        test $? -eq 0 && add_daemon `basename $1`
     137    }
     138
     139    killproc() {
     140        killall $@
     141        rm_daemon `basename $@`
     142    }
     143
     144    fail_msg() {
     145        echo " ...fail!"
     146    }
     147
     148    succ_msg() {
     149        echo " ...done."
     150    }
     151fi
     152 
    129153if [ "$system" = "slackware" ]; then
    130154    daemon() {
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette