]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - etc/rc.suspend
Add a comment as to where stdarg.h applies.
[FreeBSD/FreeBSD.git] / etc / rc.suspend
1 #!/bin/sh
2 #
3 # $FreeBSD$
4 #
5 # sample run command file for APM Suspend Event
6
7 if [ -r /var/run/rc.suspend.pid ]; then
8         exit 1
9 fi
10
11 echo $$ > /var/run/rc.suspend.pid
12
13 # If you have troubles on suspending with PC-CARD modem, try this.
14 # See also contrib/pccardq.c (Only for PAO users).
15 # pccardq | awk -F '~' '$5 == "filled" && $4 ~ /sio/ \
16 #       { printf("pccardc power %d 0", $1); }' | sh
17
18 logger -t apmd suspend at `date +'%Y%m%d %H:%M:%S'`
19 sync && sync && sync
20 sleep 3
21
22 rm -f /var/run/rc.suspend.pid
23 zzz
24
25 exit 0