--- a/etc/conf.d/vdr.shutdown +++ a/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 --- a/usr/share/vdr/shutdown/pre-shutdown-98-systohc.sh +++ a/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