rc.suspend revision 50472
1158979Snetchild#!/bin/sh 2166322Sjoel# 3166322Sjoel# $FreeBSD: head/etc/rc.suspend 50472 1999-08-27 23:37:10Z peter $ 4158979Snetchild# 5158979Snetchild# sample run command file for APM Suspend Event 6166322Sjoel 7166322Sjoelif [ -f /var/run/rc.suspend.pid ] 8166322Sjoelthen 9166322Sjoel exit 1 10166322Sjoelfi 11166322Sjoel 12166322Sjoelecho $$ > /var/run/rc.suspend.pid 13158979Snetchild 14166322Sjoel# If you have troubles on suspending with PC-CARD modem, try this. 15166322Sjoel# See also contrib/pccardq.c (Only for PAO users). 16166322Sjoel#pccardq | awk -F '~' '$5 == "filled" && $4 ~ /sio/ \ 17166322Sjoel# { printf("pccardc power %d 0", $1); }' | sh 18166322Sjoel 19166322Sjoellogger -t apmd suspend at `date +'%Y%m%d %H:%M:%S'` 20166322Sjoelsync && sync && sync 21166322Sjoelsleep 3 22158979Snetchild 23158979Snetchildrm -f /var/run/rc.suspend.pid 24158979Snetchildzzz 25158979Snetchild 26158979Snetchildexit 0 27158979Snetchild 28158979Snetchild