summaryrefslogtreecommitdiff
path: root/apmd/apmd-3.2.2/hwclock
blob: a1c1c2294c9beadb7cb771bbef2377eaad49a70d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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