File: apm

package info (click to toggle)
chrony 1.21z-5
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 2,080 kB
  • ctags: 2,375
  • sloc: ansic: 14,831; yacc: 858; sh: 588; perl: 426; makefile: 148
file content (17 lines) | stat: -rw-r--r-- 453 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

# Placed in /etc/apm/event.d by the chrony package at the instruction of
# the apmd maintainer.  If you don't have apm and don't intend to install
# apmd you may remove it.  It needs to run after 00hwclock but before any
# other scripts.


[ -x /usr/sbin/chronyd ] || exit 0

if [ "$1" = suspend ]; then
	/etc/init.d/chrony stop
elif [ "$1" = standby ]; then
	/etc/init.d/chrony stop
elif [ "$1" = resume ]; then
	/etc/init.d/chrony start
fi