diff --git a/etc/conf.d/vdr.shutdown b/etc/conf.d/vdr.shutdown index 2d1ef44..dc60770 100644 --- a/etc/conf.d/vdr.shutdown +++ b/etc/conf.d/vdr.shutdown @@ -191,6 +191,12 @@ # default: 10 minutes #SHUTDOWN_DEFAULT_RETRY_TIME="10" +# +# Set the systems hardware clock during shutdown. +# allowed values: yes no +# default: no +#SHUTDOWN_SYSTOHC="yes" + # Debugging variables: #DEBUG=1 #DRY_SHUTDOWN=1 diff --git a/usr/share/vdr/shutdown/pre-shutdown-98-systohc.sh b/usr/share/vdr/shutdown/pre-shutdown-98-systohc.sh new file mode 100644 index 0000000..77b2b1e --- /dev/null +++ b/usr/share/vdr/shutdown/pre-shutdown-98-systohc.sh @@ -0,0 +1,7 @@ +do_systohc() { + hwclock --systohc +} + +if yesno "${SHUTDOWN_SYSTOHC:-no}"; then + do_systohc +fi