diff options
author | Jörg Bornkessel <hd_brummy@gentoo.org> | 2010-12-07 01:14:08 +0000 |
---|---|---|
committer | Jörg Bornkessel <hd_brummy@gentoo.org> | 2010-12-07 01:14:08 +0000 |
commit | 3b3117569c9c46201537ff8cc777dc9ddeafdf8b (patch) | |
tree | 7cc65a84ee3bb520d635cdf827722b40208187b1 | |
parent | Bumped to version 0.4.8_rc1 (diff) | |
download | gentoo-vdr-scripts-3b3117569c9c46201537ff8cc777dc9ddeafdf8b.tar.gz gentoo-vdr-scripts-3b3117569c9c46201537ff8cc777dc9ddeafdf8b.tar.bz2 gentoo-vdr-scripts-3b3117569c9c46201537ff8cc777dc9ddeafdf8b.zip |
added shutdown fix for probs on wrong time with used system systohc, bug #263956
svn path=/gentoo-vdr-scripts/trunk/; revision=673
-rw-r--r-- | etc/conf.d/vdr.shutdown | 9 | ||||
-rw-r--r-- | usr/share/vdr/shutdown/pre-shutdown-90-systohc.sh | 24 |
2 files changed, 33 insertions, 0 deletions
diff --git a/etc/conf.d/vdr.shutdown b/etc/conf.d/vdr.shutdown index 941d856..14019e8 100644 --- a/etc/conf.d/vdr.shutdown +++ b/etc/conf.d/vdr.shutdown @@ -191,6 +191,15 @@ # default: 10 minutes #SHUTDOWN_DEFAULT_RETRY_TIME="10" +# +# The option CLOCK_SYTOHC breaks in some cases the wakup time +# setted by vdr. This fix will correct the bios time and after this +# will be written the wakeup time. See bug #263956 +# 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-90-systohc.sh b/usr/share/vdr/shutdown/pre-shutdown-90-systohc.sh new file mode 100644 index 0000000..2231b70 --- /dev/null +++ b/usr/share/vdr/shutdown/pre-shutdown-90-systohc.sh @@ -0,0 +1,24 @@ +# $Id: $ + +if [ ! -f /etc/init.d/sysfs ]; then +# Baselayout 1 +. /etc/conf.d/clock + else +# Baselayout 2 +. /etc/conf.d/hwclock +fi + + +do_systohc() { + hwclock --systohc +} + +if yesno "${SHUTDOWN_SYSTOHC:-no}"; then + + if [ ${CLOCK_SYSTOHC:=no} == "no" ] || [ ${clock_systohc:=NO} == "NO" ] ;then + + do_systohc + + fi + +fi |