diff options
Diffstat (limited to 'etc')
-rw-r--r-- | etc/rc | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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: ' |