18cfdf36dSNathan Whitehorn#!/bin/sh 2a09af1b7SJessica Clarke# 3a09af1b7SJessica Clarke# SPDX-License-Identifier: BSD-2-Clause 4a09af1b7SJessica Clarke# 5a09af1b7SJessica Clarke# Copyright (c) 2022 Jessica Clarke <jrtc27@FreeBSD.org> 6a09af1b7SJessica Clarke# 7a09af1b7SJessica Clarke# Redistribution and use in source and binary forms, with or without 8a09af1b7SJessica Clarke# modification, are permitted provided that the following conditions 9a09af1b7SJessica Clarke# are met: 10a09af1b7SJessica Clarke# 1. Redistributions of source code must retain the above copyright 11a09af1b7SJessica Clarke# notice, this list of conditions and the following disclaimer. 12a09af1b7SJessica Clarke# 2. Redistributions in binary form must reproduce the above copyright 13a09af1b7SJessica Clarke# notice, this list of conditions and the following disclaimer in the 14a09af1b7SJessica Clarke# documentation and/or other materials provided with the distribution. 15a09af1b7SJessica Clarke# 16a09af1b7SJessica Clarke# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 17a09af1b7SJessica Clarke# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18a09af1b7SJessica Clarke# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19a09af1b7SJessica Clarke# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 20a09af1b7SJessica Clarke# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21a09af1b7SJessica Clarke# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22a09af1b7SJessica Clarke# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23a09af1b7SJessica Clarke# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24a09af1b7SJessica Clarke# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25a09af1b7SJessica Clarke# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26a09af1b7SJessica Clarke# SUCH DAMAGE. 27a09af1b7SJessica Clarke# 28a09af1b7SJessica Clarke 29a09af1b7SJessica Clarkebsdinstall_multicons_disabled() 30a09af1b7SJessica Clarke{ 31a09af1b7SJessica Clarke local var value 32a09af1b7SJessica Clarke 33a09af1b7SJessica Clarke var=bsdinstall.multicons_disable 34a09af1b7SJessica Clarke value=`kenv -q $var` 35a09af1b7SJessica Clarke case "${value:-NO}" in 36a09af1b7SJessica Clarke [Yy][Ee][Ss]|[Tt][Rr][Uu][Ee]|[Oo][Nn]|1) 37a09af1b7SJessica Clarke return 0 38a09af1b7SJessica Clarke ;; 39a09af1b7SJessica Clarke [Nn][Oo]|[Ff][Aa][Ll][Ss][Ee]|[Oo][Ff][Ff]|0) 40a09af1b7SJessica Clarke return 1 41a09af1b7SJessica Clarke ;; 42a09af1b7SJessica Clarke *) 43a09af1b7SJessica Clarke warn "$var is not set properly, ignoring" 44a09af1b7SJessica Clarke return 1 45a09af1b7SJessica Clarke ;; 46a09af1b7SJessica Clarke esac 47a09af1b7SJessica Clarke} 488cfdf36dSNathan Whitehorn 49013713e7SNathan Whitehorn# resolv.conf from DHCP ends up in here, so make sure the directory exists 50013713e7SNathan Whitehornmkdir /tmp/bsdinstall_etc 51013713e7SNathan Whitehorn 52a09af1b7SJessica Clarkeif bsdinstall_multicons_disabled; then 53a09af1b7SJessica Clarke /usr/libexec/bsdinstall/startbsdinstall primary 54a09af1b7SJessica Clarkeelse 55a09af1b7SJessica Clarke echo 56a09af1b7SJessica Clarke /usr/libexec/bsdinstall/runconsoles /usr/libexec/bsdinstall/startbsdinstall % 57a09af1b7SJessica Clarkefi 58