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.resume | |
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.resume')
-rwxr-xr-x | etc/rc.resume | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/etc/rc.resume b/etc/rc.resume index 74db8ed..018a9e1 100755 --- a/etc/rc.resume +++ b/etc/rc.resume @@ -4,8 +4,7 @@ # # sample run command file for APM Resume Event -if [ -f /var/run/rc.suspend.pid ] -then +if [ -r /var/run/rc.suspend.pid ]; then kill -9 `cat /var/run/rc.suspend.pid` rm -f /var/run/rc.suspend.pid echo rc.suspend is killed @@ -13,11 +12,10 @@ fi # Turns on a power supply of a card in the slot inactivated. # See also contrib/pccardq.c (only for PAO users). -#pccardq | awk -F '~' '$5 == "inactive" \ -# { printf("pccardc power %d 1", $1); }' | sh +# pccardq | awk -F '~' '$5 == "inactive" \ +# { printf("pccardc power %d 1", $1); }' | sh logger -t apmd resumed at `date +'%Y%m%d %H:%M:%S'` sync && sync && sync exit 0 - |