1218799Snwhitehorn#!/bin/sh 2218799Snwhitehorn#- 3218799Snwhitehorn# Copyright (c) 2011 Nathan Whitehorn 4287687Sdteske# Copyright (c) 2013-2015 Devin Teske 5218799Snwhitehorn# All rights reserved. 6218799Snwhitehorn# 7218799Snwhitehorn# Redistribution and use in source and binary forms, with or without 8218799Snwhitehorn# modification, are permitted provided that the following conditions 9218799Snwhitehorn# are met: 10218799Snwhitehorn# 1. Redistributions of source code must retain the above copyright 11218799Snwhitehorn# notice, this list of conditions and the following disclaimer. 12218799Snwhitehorn# 2. Redistributions in binary form must reproduce the above copyright 13218799Snwhitehorn# notice, this list of conditions and the following disclaimer in the 14218799Snwhitehorn# documentation and/or other materials provided with the distribution. 15218799Snwhitehorn# 16218799Snwhitehorn# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 17218799Snwhitehorn# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18218799Snwhitehorn# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19218799Snwhitehorn# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 20218799Snwhitehorn# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21218799Snwhitehorn# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22218799Snwhitehorn# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23218799Snwhitehorn# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24218799Snwhitehorn# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25218799Snwhitehorn# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26218799Snwhitehorn# SUCH DAMAGE. 27218799Snwhitehorn# 28218799Snwhitehorn# $FreeBSD: releng/11.0/usr.sbin/bsdinstall/scripts/config 303447 2016-07-28 15:54:17Z robak $ 29257842Sdteske# 30257842Sdteske############################################################ MAIN 31257842Sdteske 32218799Snwhitehorncat $BSDINSTALL_TMPETC/rc.conf.* >> $BSDINSTALL_TMPETC/rc.conf 33218799Snwhitehornrm $BSDINSTALL_TMPETC/rc.conf.* 34218799Snwhitehorn 35303447Srobakcat $BSDINSTALL_CHROOT/etc/sysctl.conf $BSDINSTALL_TMPETC/sysctl.conf.hardening >> $BSDINSTALL_TMPETC/sysctl.conf 36303447Srobakrm $BSDINSTALL_TMPETC/sysctl.conf.* 37303447Srobak 38218799Snwhitehorncp $BSDINSTALL_TMPETC/* $BSDINSTALL_CHROOT/etc 39223980Snwhitehorn 40256343Sdteskecat $BSDINSTALL_TMPBOOT/loader.conf.* >> $BSDINSTALL_TMPBOOT/loader.conf 41256343Sdteskerm $BSDINSTALL_TMPBOOT/loader.conf.* 42271539Snwhitehorndf -t zfs $BSDINSTALL_CHROOT > /dev/null && echo "zfs_load=\"YES\"" >> $BSDINSTALL_TMPBOOT/loader.conf 43256343Sdteske 44256343Sdteskecp $BSDINSTALL_TMPBOOT/* $BSDINSTALL_CHROOT/boot 45256343Sdteske 46257845Sdteske[ "${debugFile#+}" ] && cp "${debugFile#+}" $BSDINSTALL_CHROOT/var/log/ 47257844Sdteske 48223980Snwhitehorn# Set up other things from installed config 49259469Sdteskechroot $BSDINSTALL_CHROOT /usr/bin/newaliases > /dev/null 2>&1 50223980Snwhitehorn 51287683Sdteskeexit $SUCCESS 52287683Sdteske 53257842Sdteske################################################################################ 54257842Sdteske# END 55257842Sdteske################################################################################ 56