summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-06-25 04:01:32 +0000
committerbde <bde@FreeBSD.org>1995-06-25 04:01:32 +0000
commitf0f95a88b6b8fe8469b4b9a336b4b3a719581fa1 (patch)
tree9b9d855721badef60458c49d2ad6d59bef7f429b /etc
parentff19283b0a056608b68dab0de8f6816b2d432748 (diff)
downloadFreeBSD-src-f0f95a88b6b8fe8469b4b9a336b4b3a719581fa1.zip
FreeBSD-src-f0f95a88b6b8fe8469b4b9a336b4b3a719581fa1.tar.gz
Optionally set the dump device.
Diffstat (limited to 'etc')
-rw-r--r--etc/rc7
-rw-r--r--etc/sysconfig8
2 files changed, 13 insertions, 2 deletions
diff --git a/etc/rc b/etc/rc
index 8220376..b7bf3d3 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 7a0c6e9..0486c24 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
OpenPOWER on IntegriCloud