Viitor_upstart/etc/init/setclock.conf
kueller 79b2635d46 Neue Version V963
git-svn-id: svn://svn.compuextreme.de/Viitor/V963/Viitor_upstart@5933 504e572c-2e33-0410-9681-be2bf7408885
2011-01-03 10:48:06 +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