freebsd-dev/etc/rc.suspend
iwasaki bf9c0b3fd0 Put apmd configuration and rc files in /etc.
Update some files for apmd.
1999-07-10 18:02:42 +00:00

28 lines
553 B
Bash
Executable File

#!/bin/sh
#
# $Id: rc.suspend,v 1.1.1 1999/07/09 01:34:57 iwasaki Exp $
#
# sample run command file for APM Suspend Event
if [ -f /var/run/rc.suspend.pid ]
then
exit 1
fi
echo $$ > /var/run/rc.suspend.pid
# If you have troubles on suspending with PC-CARD modem, try this.
# See also contrib/pccardq.c (Only for PAO users).
#pccardq | awk -F '~' '$5 == "filled" && $4 ~ /sio/ \
# { printf("pccardc power %d 0", $1); }' | sh
logger -t apmd suspend at `date +'%Y%m%d %H:%M:%S'`
sync && sync && sync
sleep 3
rm -f /var/run/rc.suspend.pid
zzz
exit 0