diff options
author | sheldonh <sheldonh@FreeBSD.org> | 1999-09-13 15:44:20 +0000 |
---|---|---|
committer | sheldonh <sheldonh@FreeBSD.org> | 1999-09-13 15:44:20 +0000 |
commit | d8a93d30ec0f7b9de2d59dab07ac29c6f7f8f663 (patch) | |
tree | f61d8b7d858e07792674c281853167482e6806c5 /etc/rc.suspend | |
parent | 019fd9cb5fe17ed3ce93a28306ec3009d2a512f7 (diff) | |
download | FreeBSD-src-d8a93d30ec0f7b9de2d59dab07ac29c6f7f8f663.zip FreeBSD-src-d8a93d30ec0f7b9de2d59dab07ac29c6f7f8f663.tar.gz |
Apply a consistent style to most of the etc scripts. Particularly, use
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>
Diffstat (limited to 'etc/rc.suspend')
-rwxr-xr-x | etc/rc.suspend | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/etc/rc.suspend b/etc/rc.suspend index 9b6f815..24136d1 100755 --- a/etc/rc.suspend +++ b/etc/rc.suspend @@ -4,8 +4,7 @@ # # sample run command file for APM Suspend Event -if [ -f /var/run/rc.suspend.pid ] -then +if [ -r /var/run/rc.suspend.pid ]; then exit 1 fi @@ -13,7 +12,7 @@ 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/ \ +# 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'` @@ -24,4 +23,3 @@ rm -f /var/run/rc.suspend.pid zzz exit 0 - |