aboutsummaryrefslogtreecommitdiff
path: root/usr/share
diff options
context:
space:
mode:
authorJörg Bornkessel <hd_brummy@gentoo.org>2010-12-07 01:14:08 +0000
committerJörg Bornkessel <hd_brummy@gentoo.org>2010-12-07 01:14:08 +0000
commit3b3117569c9c46201537ff8cc777dc9ddeafdf8b (patch)
tree7cc65a84ee3bb520d635cdf827722b40208187b1 /usr/share
parentBumped to version 0.4.8_rc1 (diff)
downloadgentoo-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
Diffstat (limited to 'usr/share')
-rw-r--r--usr/share/vdr/shutdown/pre-shutdown-90-systohc.sh24
1 files changed, 24 insertions, 0 deletions
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