Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/bsdinstall/scripts/services
Show All 20 Lines | |||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | # 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 | # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||||
# SUCH DAMAGE. | # SUCH DAMAGE. | ||||
# | # | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
BSDCFG_SHARE="/usr/share/bsdconfig" | |||||
. $BSDCFG_SHARE/common.subr || exit 1 | |||||
: ${BSDDIALOG_OK=0} | : ${BSDDIALOG_OK=0} | ||||
if [ -f $BSDINSTALL_TMPETC/rc.conf.services ]; then | if [ -f $BSDINSTALL_TMPETC/rc.conf.services ]; then | ||||
eval $( sed -e s/YES/on/i -e s/NO/off/i \ | eval $( sed -e s/YES/on/i -e s/NO/off/i \ | ||||
$BSDINSTALL_TMPETC/rc.conf.services ) | $BSDINSTALL_TMPETC/rc.conf.services ) | ||||
else | else | ||||
# Default service states. Everything is off if not enabled. | # Default service states. Everything is off if not enabled. | ||||
sshd_enable="on" | sshd_enable="on" | ||||
fi | fi | ||||
echo -n > $BSDINSTALL_TMPETC/rc.conf.services | echo -n > $BSDINSTALL_TMPETC/rc.conf.services | ||||
exec 3>&1 | exec 3>&1 | ||||
DAEMONS=$( bsddialog --backtitle "FreeBSD Installer" \ | DAEMONS=$( bsddialog --backtitle "$OSNAME Installer" \ | ||||
--title "System Configuration" --no-cancel --separate-output \ | --title "System Configuration" --no-cancel --separate-output \ | ||||
--checklist "Choose the services you would like to be started at boot:" \ | --checklist "Choose the services you would like to be started at boot:" \ | ||||
0 0 0 \ | 0 0 0 \ | ||||
local_unbound "Local caching validating resolver" ${local_unbound:-off} \ | local_unbound "Local caching validating resolver" ${local_unbound:-off} \ | ||||
sshd "Secure shell daemon" ${sshd_enable:-off} \ | sshd "Secure shell daemon" ${sshd_enable:-off} \ | ||||
moused "PS/2 mouse pointer on console" ${moused_enable:-off} \ | moused "PS/2 mouse pointer on console" ${moused_enable:-off} \ | ||||
ntpdate "Synchronize system and network time at bootime" \ | ntpdate "Synchronize system and network time at bootime" \ | ||||
${ntpdate_enable:-off} \ | ${ntpdate_enable:-off} \ | ||||
Show All 31 Lines |