aboutsummaryrefslogtreecommitdiff
path: root/etc/rc.suspend
diff options
context:
space:
mode:
authorSheldon Hearn <sheldonh@FreeBSD.org>1999-09-13 15:44:20 +0000
committerSheldon Hearn <sheldonh@FreeBSD.org>1999-09-13 15:44:20 +0000
commit321704296f6ba1a5885ff7064b14fbeecf20c340 (patch)
tree920fd19901d5e07524b525646b51b9635f1686a7 /etc/rc.suspend
parent4a086b52ca9b3fe330755fcf9e1c7a9c657927ee (diff)
downloadsrc-321704296f6ba1a5885ff7064b14fbeecf20c340.tar.gz
src-321704296f6ba1a5885ff7064b14fbeecf20c340.zip
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>
Notes
Notes: svn path=/head/; revision=51231
Diffstat (limited to 'etc/rc.suspend')
-rwxr-xr-xetc/rc.suspend6
1 files changed, 2 insertions, 4 deletions
diff --git a/etc/rc.suspend b/etc/rc.suspend
index 9b6f815915af..24136d1ee4b2 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
-