netconfig (222681) | netconfig (225430) |
---|---|
1#!/bin/sh 2#- 3# Copyright (c) 2011 Nathan Whitehorn 4# All rights reserved. 5# Copyright (c) 2011 The FreeBSD Foundation 6# All rights reserved. 7# 8# Portions of this software were developed by Bjoern Zeeb --- 15 unchanged lines hidden (view full) --- 24# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30# SUCH DAMAGE. 31# | 1#!/bin/sh 2#- 3# Copyright (c) 2011 Nathan Whitehorn 4# All rights reserved. 5# Copyright (c) 2011 The FreeBSD Foundation 6# All rights reserved. 7# 8# Portions of this software were developed by Bjoern Zeeb --- 15 unchanged lines hidden (view full) --- 24# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30# SUCH DAMAGE. 31# |
32# $FreeBSD: head/usr.sbin/bsdinstall/scripts/netconfig 222681 2011-06-04 12:51:22Z bz $ | 32# $FreeBSD: head/usr.sbin/bsdinstall/scripts/netconfig 225430 2011-09-07 00:48:58Z bz $ |
33 34INTERFACES="" 35DIALOG_TAGS="" 36 37: ${DIALOG_OK=0} 38: ${DIALOG_CANCEL=1} 39: ${DIALOG_HELP=2} 40: ${DIALOG_EXTRA=3} --- 119 unchanged lines hidden (view full) --- 160 'IPv4 DNS #2' 3 0 \"${IP4_2}\" 3 16 16 0 0" 161else 162 exit 0 163fi 164 165exec 3>&1 166RESOLV=$(echo "${RESOLV}" | xargs dialog --backtitle 'FreeBSD Installer' \ 167 --title 'Network Configuration' \ | 33 34INTERFACES="" 35DIALOG_TAGS="" 36 37: ${DIALOG_OK=0} 38: ${DIALOG_CANCEL=1} 39: ${DIALOG_HELP=2} 40: ${DIALOG_EXTRA=3} --- 119 unchanged lines hidden (view full) --- 160 'IPv4 DNS #2' 3 0 \"${IP4_2}\" 3 16 16 0 0" 161else 162 exit 0 163fi 164 165exec 3>&1 166RESOLV=$(echo "${RESOLV}" | xargs dialog --backtitle 'FreeBSD Installer' \ 167 --title 'Network Configuration' \ |
168 --mixedform 'Resovler Configuration' 0 0 0 \ | 168 --mixedform 'Resolver Configuration' 0 0 0 \ |
1692>&1 1>&3) 170if [ $? -eq $DIALOG_CANCEL ]; then exec $0; fi 171exec 3>&- 172 173echo ${RESOLV} | tr ' ' '\n' | \ 174awk ' 175BEGIN { 176 search=-1; --- 23 unchanged lines hidden --- | 1692>&1 1>&3) 170if [ $? -eq $DIALOG_CANCEL ]; then exec $0; fi 171exec 3>&- 172 173echo ${RESOLV} | tr ' ' '\n' | \ 174awk ' 175BEGIN { 176 search=-1; --- 23 unchanged lines hidden --- |