Viitor_upstart/etc/init/setclock.conf

24 lines
574 B
Plaintext
Raw Normal View History

# rcS - runlevel compatibility
#
# This task runs the old sysv-rc startup scripts.
start on started mountfs
#stop on runlevel
# Note: there can be no previous runlevel here, if we have one it's bad
# information (we enter rc1 not rcS for maintenance). Run /etc/init.d/rc
# without information so that it defaults to previous=N runlevel=S.
console output
script
source /etc/event.d/functions
CLOCKPARAMS="--hctosys"
case "$UTC" in
yes|true|1)
CLOCKPARAMS="$CLOCKPARAMS -u"
;;
esac
/sbin/hwclock $CLOCKPARAMS
status_message "Load of hwclock..."
end script