public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-vdr r673 - in gentoo-vdr-scripts/trunk: etc/conf.d usr/share/vdr/shutdown
@ 2010-12-07  1:14 Joerg Bornkessel (hd_brummy)
  0 siblings, 0 replies; only message in thread
From: Joerg Bornkessel (hd_brummy) @ 2010-12-07  1:14 UTC (permalink / raw
  To: gentoo-commits

Author: hd_brummy
Date: 2010-12-07 01:14:08 +0000 (Tue, 07 Dec 2010)
New Revision: 673

Added:
   gentoo-vdr-scripts/trunk/usr/share/vdr/shutdown/pre-shutdown-90-systohc.sh
Modified:
   gentoo-vdr-scripts/trunk/etc/conf.d/vdr.shutdown
Log:
added shutdown fix for probs on wrong time with used system systohc, bug #263956

Modified: gentoo-vdr-scripts/trunk/etc/conf.d/vdr.shutdown
===================================================================
--- gentoo-vdr-scripts/trunk/etc/conf.d/vdr.shutdown	2010-12-05 22:37:13 UTC (rev 672)
+++ gentoo-vdr-scripts/trunk/etc/conf.d/vdr.shutdown	2010-12-07 01:14:08 UTC (rev 673)
@@ -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

Added: gentoo-vdr-scripts/trunk/usr/share/vdr/shutdown/pre-shutdown-90-systohc.sh
===================================================================
--- gentoo-vdr-scripts/trunk/usr/share/vdr/shutdown/pre-shutdown-90-systohc.sh	                        (rev 0)
+++ gentoo-vdr-scripts/trunk/usr/share/vdr/shutdown/pre-shutdown-90-systohc.sh	2010-12-07 01:14:08 UTC (rev 673)
@@ -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




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-12-07  1:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-07  1:14 [gentoo-commits] gentoo-vdr r673 - in gentoo-vdr-scripts/trunk: etc/conf.d usr/share/vdr/shutdown Joerg Bornkessel (hd_brummy)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox