9df088532e
git-svn-id: svn://svn.compuextreme.de/Viitor/V962/Viitor_upstart@5506 504e572c-2e33-0410-9681-be2bf7408885
20 lines
417 B
Plaintext
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
|