diff options
| author | Ken Smith <kensmith@FreeBSD.org> | 2011-12-03 17:02:51 +0000 |
|---|---|---|
| committer | Ken Smith <kensmith@FreeBSD.org> | 2011-12-03 17:02:51 +0000 |
| commit | 186954cffcfcb8f996b40f0291d9206579e9dda4 (patch) | |
| tree | e9dbf4d69c3ba1f5da943fd48c05a71642c42f5a | |
| parent | 9297f1719b52742ee0f17dee3a314a9c4b75f6f2 (diff) | |
Notes
| -rwxr-xr-x | usr.sbin/bsdinstall/scripts/services | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/usr.sbin/bsdinstall/scripts/services b/usr.sbin/bsdinstall/scripts/services index 01c25fe941f6..52aa57ee29bf 100755 --- a/usr.sbin/bsdinstall/scripts/services +++ b/usr.sbin/bsdinstall/scripts/services @@ -26,6 +26,8 @@ # # $FreeBSD$ +: ${DIALOG_OK=0} + if [ -f $BSDINSTALL_TMPETC/rc.conf.services ]; then eval `sed -e s/YES/on/I -e s/NO/off/I $BSDINSTALL_TMPETC/rc.conf.services` else @@ -51,3 +53,15 @@ for daemon in $DAEMONS; do 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 + echo dumpdev=\"NO\" >> $BSDINSTALL_TMPETC/rc.conf.services +fi |
