head	1.4;
access;
symbols
	RELENG_9_1_0_RELEASE:1.1.2.2.2.2
	RELENG_9_1:1.1.2.2.0.2
	RELENG_9_1_BP:1.1.2.2
	RELENG_9_0_0_RELEASE:1.1.2.1.2.2
	RELENG_9_0:1.1.2.1.0.2
	RELENG_9_0_BP:1.1.2.1
	RELENG_9:1.1.0.2
	RELENG_9_BP:1.1;
locks; strict;
comment	@# @;


1.4
date	2013.01.13.00.34.58;	author svnexp;	state Exp;
branches;
next	1.3;

1.3
date	2012.11.17.01.54.40;	author svnexp;	state Exp;
branches;
next	1.2;

1.2
date	2011.12.02.00.38.47;	author kensmith;	state Exp;
branches;
next	1.1;

1.1
date	2011.02.18.14.54.34;	author nwhitehorn;	state Exp;
branches
	1.1.2.1;
next	;

1.1.2.1
date	2011.09.23.00.51.37;	author kensmith;	state Exp;
branches
	1.1.2.1.2.1;
next	1.1.2.2;

1.1.2.2
date	2011.12.03.16.58.55;	author kensmith;	state Exp;
branches
	1.1.2.2.2.1;
next	1.1.2.3;

1.1.2.3
date	2012.11.17.11.37.43;	author svnexp;	state Exp;
branches;
next	1.1.2.4;

1.1.2.4
date	2013.03.13.14.04.34;	author svnexp;	state Exp;
branches;
next	1.1.2.5;

1.1.2.5
date	2014.03.31.02.01.46;	author svnexp;	state Exp;
branches;
next	;

1.1.2.1.2.1
date	2011.11.11.04.20.22;	author kensmith;	state Exp;
branches;
next	1.1.2.1.2.2;

1.1.2.1.2.2
date	2011.12.03.17.02.51;	author kensmith;	state Exp;
branches;
next	1.1.2.1.2.3;

1.1.2.1.2.3
date	2012.11.17.08.37.39;	author svnexp;	state Exp;
branches;
next	;

1.1.2.2.2.1
date	2012.08.05.23.54.33;	author kensmith;	state Exp;
branches;
next	1.1.2.2.2.2;

1.1.2.2.2.2
date	2012.11.17.08.48.31;	author svnexp;	state Exp;
branches;
next	;


desc
@@


1.4
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/245333
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@#!/bin/sh
#-
# Copyright (c) 2011 Nathan Whitehorn
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
# $FreeBSD: head/usr.sbin/bsdinstall/scripts/services 245333 2013-01-12 16:01:58Z nwhitehorn $

: ${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
	# Default service states. Everything is off if not enabled.
	sshd_enable="on"
fi

echo -n > $BSDINSTALL_TMPETC/rc.conf.services

exec 3>&1
DAEMONS=$(dialog --backtitle "FreeBSD Installer" \
    --title "System Configuration" --nocancel --separate-output \
    --checklist "Choose the services you would like to be started at boot:" \
    0 0 0 \
	sshd	"Secure shell daemon" ${sshd_enable:-off} \
	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} \
2>&1 1>&3)
exec 3>&-

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
@


1.3
log
@Switching exporter and resync
@
text
@d27 1
a27 1
# $FreeBSD: head/usr.sbin/bsdinstall/scripts/services 228192 2011-12-02 00:38:47Z kensmith $
d48 1
a48 1
	powerd	"Adjust CPU frequency dynamically" ${powerd_enable:-off} \
@


1.2
log
@SVN rev 228192 on 2011-12-02 00:38:47Z by kensmith

Add a screen that asks if the user would like to enable crash dumps,
giving them a very brief description of the trade-offs.  Whether the
user opts in or out add an entry to what will become /etc/rc.conf
explaining what dumpdev is and how to turn on/off crash dumps.  The folks
who handle interacting with users submitting PRs have asked for this.

Reviewed by:	nwhitehorn
MFC after:	1 day
@
text
@d27 1
a27 1
# $FreeBSD$
@


1.1
log
@SVN rev 218799 on 2011-02-18 14:54:34Z by nwhitehorn

Import bsdinstall. This is meant to be (eventually in conjunction with
pc-sysinstall) a replacement for sysinstall in the 9.0 release and beyond.
Currently supported platforms are sparc64, pc98, i386, amd64, powerpc, and
powerpc64. Integration into the build system will occur in the coming
weeks.

Merging with pc-sysinstall will use this code as a frontend, while
temporarily retaining the interactive partition editor here. This work
will be done in parallel with improvements on this code and release
integration.

Thanks to all who have provided testing and comments!
@
text
@d29 2
d56 12
@


1.1.2.1
log
@SVN rev 225736 on 2011-09-23 00:51:37Z by kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.1.2.2
log
@SVN rev 228237 on 2011-12-03 16:58:55Z by kensmith

MFC r228192:
> Add a screen that asks if the user would like to enable crash dumps,
> giving them a very brief description of the trade-offs.  Whether the
> user opts in or out add an entry to what will become /etc/rc.conf
> explaining what dumpdev is and how to turn on/off crash dumps.  The folks
> who handle interacting with users submitting PRs have asked for this.
>
> Reviewed by:  nwhitehorn

Approved by:	re (kib)
@
text
@a28 2
: ${DIALOG_OK=0}

a53 12
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
@


1.1.2.3
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242902
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242902 | dteske | 2012-11-11 23:29:45 +0000 (Sun, 11 Nov 2012) | 10 lines
## SVN ##
## SVN ## Fix a regression introduced by SVN r211417 that saw the breakage of a feature
## SVN ## documented in usr.sbin/sysinstall/help/shortcuts.hlp (reproduced below):
## SVN ##
## SVN ## If /usr/sbin/sysinstall is linked to another filename, say
## SVN ## `/usr/local/bin/configPackages', then the basename will be used
## SVN ## as an implicit command name.
## SVN ##
## SVN ## Reviewed by:	adrian (co-mentor)
## SVN ## Approved by:	adrian (co-mentor)
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d27 1
a27 1
# $FreeBSD: stable/9/usr.sbin/bsdinstall/scripts/services 228237 2011-12-03 16:58:55Z kensmith $
@


1.1.2.4
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/248237
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d27 1
a27 1
# $FreeBSD: stable/9/usr.sbin/bsdinstall/scripts/services 248237 2013-03-13 13:41:28Z nwhitehorn $
d48 1
a48 1
	powerd	"Adjust CPU frequency dynamically if supported" ${powerd_enable:-off} \
@


1.1.2.5
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/263956
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d27 1
a27 1
# $FreeBSD: stable/9/usr.sbin/bsdinstall/scripts/services 263956 2014-03-31 01:04:40Z dteske $
d32 1
a32 2
	eval $( sed -e s/YES/on/i -e s/NO/off/i \
		$BSDINSTALL_TMPETC/rc.conf.services )
d41 1
a41 1
DAEMONS=$( dialog --backtitle "FreeBSD Installer" \
d48 2
a49 4
	powerd	"Adjust CPU frequency dynamically if supported" \
		${powerd_enable:-off} \
	dumpdev "Enable kernel crash dumps to /var/crash" ${dumpdev:-on} \
2>&1 1>&3 )
a51 1
havedump=
a52 1
	[ "$daemon" = "dumpdev" ] && havedump=1 continue
d56 8
a63 3
echo '# Set dumpdev to "AUTO" to enable crash dumps, "NO"' \
     'to disable' >> $BSDINSTALL_TMPETC/rc.conf.services
if [ "$havedump" ]; then
@


1.1.2.2.2.1
log
@SVN rev 239080 on 2012-08-05 23:54:33Z by kensmith

Copy stable/9 to releng/9.1 as part of the 9.1-RELEASE release process.

Approved by:	re (implicit)
@
text
@@


1.1.2.2.2.2
log
@Switch importer
@
text
@d27 1
a27 1
# $FreeBSD: releng/9.1/usr.sbin/bsdinstall/scripts/services 228237 2011-12-03 16:58:55Z kensmith $
@


1.1.2.1.2.1
log
@SVN rev 227445 on 2011-11-11 04:20:22Z by kensmith

Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
cycle.

Approved by:	re (implicit)
@
text
@@


1.1.2.1.2.2
log
@SVN rev 228238 on 2011-12-03 17:02:51Z by kensmith

MFC r228237:
> Add a screen that asks if the user would like to enable crash dumps,
> giving them a very brief description of the trade-offs.  Whether the
> user opts in or out add an entry to what will become /etc/rc.conf
> explaining what dumpdev is and how to turn on/off crash dumps.  The folks
> who handle interacting with users submitting PRs have asked for this.
>
> Reviewed by:  nwhitehorn

Approved by:	re (kib)
@
text
@a28 2
: ${DIALOG_OK=0}

a53 12
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
@


1.1.2.1.2.3
log
@Switch importer
@
text
@d27 1
a27 1
# $FreeBSD: releng/9.0/usr.sbin/bsdinstall/scripts/services 228238 2011-12-03 17:02:51Z kensmith $
@


