summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-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