diff options
author | iwasaki <iwasaki@FreeBSD.org> | 1999-07-10 18:02:42 +0000 |
---|---|---|
committer | iwasaki <iwasaki@FreeBSD.org> | 1999-07-10 18:02:42 +0000 |
commit | be16db802f075e6d3399b571b73a5d2d901565f4 (patch) | |
tree | f7933333e0969471d5799ca4b615bb2029d1c5f2 /etc/rc.suspend | |
parent | 669be26799b5a0577fb8f2f3716b8a715be82845 (diff) | |
download | FreeBSD-src-be16db802f075e6d3399b571b73a5d2d901565f4.zip FreeBSD-src-be16db802f075e6d3399b571b73a5d2d901565f4.tar.gz |
Put apmd configuration and rc files in /etc.
Update some files for apmd.
Diffstat (limited to 'etc/rc.suspend')
-rwxr-xr-x | etc/rc.suspend | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/etc/rc.suspend b/etc/rc.suspend new file mode 100755 index 0000000..b60c2cf --- /dev/null +++ b/etc/rc.suspend @@ -0,0 +1,27 @@ +#!/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 + |