Deleted Added
full compact
rc.suspend (50472) rc.suspend (51231)
1#!/bin/sh
2#
1#!/bin/sh
2#
3# $FreeBSD: head/etc/rc.suspend 50472 1999-08-27 23:37:10Z peter $
3# $FreeBSD: head/etc/rc.suspend 51231 1999-09-13 15:44:20Z sheldonh $
4#
5# sample run command file for APM Suspend Event
6
4#
5# sample run command file for APM Suspend Event
6
7if [ -f /var/run/rc.suspend.pid ]
8then
7if [ -r /var/run/rc.suspend.pid ]; then
9 exit 1
10fi
11
12echo $$ > /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).
8 exit 1
9fi
10
11echo $$ > /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).
16#pccardq | awk -F '~' '$5 == "filled" && $4 ~ /sio/ \
15# pccardq | awk -F '~' '$5 == "filled" && $4 ~ /sio/ \
17# { printf("pccardc power %d 0", $1); }' | sh
18
19logger -t apmd suspend at `date +'%Y%m%d %H:%M:%S'`
20sync && sync && sync
21sleep 3
22
23rm -f /var/run/rc.suspend.pid
24zzz
25
26exit 0
16# { printf("pccardc power %d 0", $1); }' | sh
17
18logger -t apmd suspend at `date +'%Y%m%d %H:%M:%S'`
19sync && sync && sync
20sleep 3
21
22rm -f /var/run/rc.suspend.pid
23zzz
24
25exit 0
27