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
|