diff --git a/etc/rc b/etc/rc index 82203765f573..b7bf3d33a432 100644 --- a/etc/rc +++ b/etc/rc @@ -1,5 +1,5 @@ #!/bin/sh -# $Id: rc,v 1.65 1995/05/15 08:39:08 davidg Exp $ +# $Id: rc,v 1.66 1995/05/15 19:50:59 rgrimes Exp $ # From: @(#)rc 5.27 (Berkeley) 6/5/91 # System startup script run by init on autoboot @@ -118,6 +118,11 @@ echo clearing /tmp (cd /tmp && rm -rf [a-km-pr-zA-Z]* && find -d . ! -name . ! -name lost+found ! -name quotas -exec rm -rf -- {} \;) +# enable dumpdev so that savecore can see it +if [ "X${dumpdev}" != X"NO" ]; then + dumpon ${dumpdev} +fi + # /var/crash should be a directory or a symbolic link # to the crash directory if core dumps are to be saved. if [ "X${savecore}" = X"YES" -a -d /var/crash ]; then diff --git a/etc/sysconfig b/etc/sysconfig index 7a0c6e909cb0..0486c24b6545 100644 --- a/etc/sysconfig +++ b/etc/sysconfig @@ -4,7 +4,7 @@ # This is sysconfig - a file full of useful variables that you can set # to change the default startup behavior of your system. # -# $Id: sysconfig,v 1.14 1995/05/17 04:46:57 rgrimes Exp $ +# $Id: sysconfig,v 1.15 1995/06/17 03:37:18 ache Exp $ ######################### Start Of Syscons Section ####################### @@ -143,6 +143,12 @@ namedflags="NO" # Set to YES if you want to run the X-10 power controller daemon xtend=NO +# Set to the name of the device for kernel crashdumps, or `off' to +# disable any statically configured dumpdev, or NO to do nothing. +# The device should normally be one of the swap devices specified +# in /etc/fstab. +# dumpdev=/dev/sd0b + # Set to YES if you want kernel crashdumps to be saved for debugging savecore=NO