summaryrefslogtreecommitdiff
path: root/apmd/apmd-3.2.2/hwclock
diff options
context:
space:
mode:
Diffstat (limited to 'apmd/apmd-3.2.2/hwclock')
-rw-r--r--apmd/apmd-3.2.2/hwclock16
1 files changed, 16 insertions, 0 deletions
diff --git a/apmd/apmd-3.2.2/hwclock b/apmd/apmd-3.2.2/hwclock
index e69de29bb2..a1c1c2294c 100644
--- a/apmd/apmd-3.2.2/hwclock
+++ b/apmd/apmd-3.2.2/hwclock
@@ -0,0 +1,16 @@
+#!/bin/sh
+# Preserve the system clock around suspend/resume.
+
+INIT="/etc/init.d/hwclock.sh"
+[ -x "${INIT}" ] || exit 0
+
+case "${1},${2}" in
+(suspend,*)
+ "${INIT}" stop
+ ;;
+(resume,suspend)
+ "${INIT}" start
+ ;;
+esac
+
+exit 0