Viitor_upstart/etc/init/setclock.conf
kueller 9df088532e Neue erst versionen für den einsatz von upstart als std init prozess
git-svn-id: svn://svn.compuextreme.de/Viitor/V962/Viitor_upstart@5506 504e572c-2e33-0410-9681-be2bf7408885
2010-04-20 12:58:29 +00:00

20 lines
417 B
Plaintext

description "Set Clock from hw System clock"
author "Harald Kueller <harald.kueller@compuextreme.de>"
version 1.0
emits none special
start on ( runlevel [12345] and (started mountfs))
console output
script
source /etc/init/functions
CLOCKPARAMS="--hctosys"
case "$UTC" in
yes|true|1)
CLOCKPARAMS="$CLOCKPARAMS -u"
;;
esac
/sbin/hwclock $CLOCKPARAMS
status_message "Load of hwclock..."
end script