summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordougb <dougb@FreeBSD.org>2001-10-10 04:25:44 +0000
committerdougb <dougb@FreeBSD.org>2001-10-10 04:25:44 +0000
commit84f950f9779920910dd92f9d0d2fed07abb54e35 (patch)
tree0c1e4a65618528f7df6245f40ca9ef4eb5155eca
parent34a23c20e2254e8c189ddd4f19c6ba8199f00e90 (diff)
downloadFreeBSD-src-84f950f9779920910dd92f9d0d2fed07abb54e35.zip
FreeBSD-src-84f950f9779920910dd92f9d0d2fed07abb54e35.tar.gz
Follow existing style a little better
-rw-r--r--etc/rc9
1 files changed, 6 insertions, 3 deletions
diff --git a/etc/rc b/etc/rc
index 68a0246..439d577 100644
--- a/etc/rc
+++ b/etc/rc
@@ -490,9 +490,12 @@ case ${dumpdev} in
[Nn][Oo] | '')
;;
*)
- if [ -z "${dumpdir}" ]; then
- dumpdir="/var/crash"
- fi
+ case ${dumpdir} in
+ '')
+ dumpdir='/var/crash'
+ ;;
+ esac
+
if [ -e "${dumpdev}" -a -d "${dumpdir}" ]; then
/sbin/dumpon -v ${dumpdev}
echo -n 'Checking for core dump: '
OpenPOWER on IntegriCloud