summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bsdinstall/scripts
diff options
context:
space:
mode:
authordteske <dteske@FreeBSD.org>2013-10-11 21:23:44 +0000
committerdteske <dteske@FreeBSD.org>2013-10-11 21:23:44 +0000
commitb1f224fcfd1ec94903c8a95f75ca05285454f185 (patch)
treeba76b5481edd4671d10793132c92a1ca51ad1f82 /usr.sbin/bsdinstall/scripts
parentf7403a583db92599eea1cc46688409fa82556be0 (diff)
downloadFreeBSD-src-b1f224fcfd1ec94903c8a95f75ca05285454f185.zip
FreeBSD-src-b1f224fcfd1ec94903c8a95f75ca05285454f185.tar.gz
Remove the dumpdev configuration dialog, merge it into the regular
services configuration and enable it by default. Committed with slight change to menu text for length and content. Submitted by: Allan Jude <freebsd@allanjude.com> Approved by: re (glebius)
Diffstat (limited to 'usr.sbin/bsdinstall/scripts')
-rwxr-xr-xusr.sbin/bsdinstall/scripts/services21
1 files changed, 11 insertions, 10 deletions
diff --git a/usr.sbin/bsdinstall/scripts/services b/usr.sbin/bsdinstall/scripts/services
index a4cfd46..cf6e739 100755
--- a/usr.sbin/bsdinstall/scripts/services
+++ b/usr.sbin/bsdinstall/scripts/services
@@ -46,22 +46,23 @@ DAEMONS=$(dialog --backtitle "FreeBSD Installer" \
moused "PS/2 mouse pointer on console" ${moused_enable:-off} \
ntpd "Synchronize system and network time" ${ntpd_enable:-off} \
powerd "Adjust CPU frequency dynamically if supported" ${powerd_enable:-off} \
+ dumpdev "Enable kernel crash dumps to /var/crash" ${dumpdev:-on} \
2>&1 1>&3)
exec 3>&-
+local havedump=
for daemon in $DAEMONS; do
+ if [ "$daemon" == "dumpdev" ]; then
+ havedump=1
+ echo \# Set dumpdev to \"AUTO\" to enable crash dumps, \
+ \"NO\" to disable >> \
+ $BSDINSTALL_TMPETC/rc.conf.services
+ echo dumpdev=\"AUTO\" >> $BSDINSTALL_TMPETC/rc.conf.services
+ continue
+ fi
echo ${daemon}_enable=\"YES\" >> $BSDINSTALL_TMPETC/rc.conf.services
done
-echo \# Set dumpdev to \"AUTO\" to enable crash dumps, \"NO\" to disable >> \
- $BSDINSTALL_TMPETC/rc.conf.services
-
-dialog --backtitle "FreeBSD Installer" --title "Dumpdev Configuration" \
- --nocancel --yesno \
- "Would you like to enable crash dumps? If you start having problems with the system it can help the FreeBSD developers debug the problem. But the crash dumps can take up a lot of disk space in /var." 0 0
-
-if [ $? -eq $DIALOG_OK ]; then
- echo dumpdev=\"AUTO\" >> $BSDINSTALL_TMPETC/rc.conf.services
-else
+if [ ! "$havedump" ]; then
echo dumpdev=\"NO\" >> $BSDINSTALL_TMPETC/rc.conf.services
fi
OpenPOWER on IntegriCloud