mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00:00
321704296f
case instead of test where appropriate, since case allows case is a sh builtin and (as a side-effect) allows case-insensitivity. Changes discussed on freebsd-hackers. Submitted by: Doug Barton <Doug@gorean.org>
26 lines
506 B
Bash
Executable File
26 lines
506 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
# sample run command file for APM Suspend Event
|
|
|
|
if [ -r /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
|