2010-04-20 12:58:29 +00:00
|
|
|
description "Set Clock from hw System clock"
|
|
|
|
author "Harald Kueller <harald.kueller@compuextreme.de>"
|
|
|
|
version 1.0
|
|
|
|
emits none special
|
2008-05-03 17:03:02 +00:00
|
|
|
|
2010-04-20 12:58:29 +00:00
|
|
|
start on ( runlevel [12345] and (started mountfs))
|
2008-05-03 17:03:02 +00:00
|
|
|
|
|
|
|
console output
|
|
|
|
script
|
2010-04-20 12:58:29 +00:00
|
|
|
source /etc/init/functions
|
2008-05-03 17:03:02 +00:00
|
|
|
CLOCKPARAMS="--hctosys"
|
|
|
|
case "$UTC" in
|
|
|
|
yes|true|1)
|
|
|
|
CLOCKPARAMS="$CLOCKPARAMS -u"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
/sbin/hwclock $CLOCKPARAMS
|
2010-01-28 13:58:15 +00:00
|
|
|
status_message "Load of hwclock..."
|
2008-05-03 17:03:02 +00:00
|
|
|
end script
|