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