head	1.20;
access;
symbols
	RELENG_9:1.18.0.2;
locks; strict;
comment	@# @;


1.20
date	2013.07.08.00.33.55;	author svnexp;	state Exp;
branches;
next	1.19;

1.19
date	2013.07.08.00.32.27;	author svnexp;	state Exp;
branches;
next	1.18;

1.18
date	2013.06.25.00.35.22;	author svnexp;	state Exp;
branches
	1.18.2.1;
next	1.17;

1.17
date	2013.06.20.03.23.54;	author svnexp;	state Exp;
branches;
next	1.16;

1.16
date	2013.06.19.00.43.07;	author svnexp;	state Exp;
branches;
next	1.15;

1.15
date	2013.06.03.00.48.05;	author svnexp;	state Exp;
branches;
next	1.14;

1.14
date	2013.06.02.00.37.30;	author svnexp;	state Exp;
branches;
next	1.13;

1.13
date	2013.05.15.00.26.05;	author svnexp;	state Exp;
branches;
next	1.12;

1.12
date	2013.04.23.00.31.28;	author svnexp;	state Exp;
branches;
next	1.11;

1.11
date	2013.04.23.00.30.01;	author svnexp;	state Exp;
branches;
next	1.10;

1.10
date	2013.04.23.00.27.07;	author svnexp;	state Exp;
branches;
next	1.9;

1.9
date	2013.02.26.00.48.51;	author svnexp;	state Exp;
branches;
next	1.8;

1.8
date	2012.12.25.11.03.38;	author svnexp;	state Exp;
branches;
next	1.7;

1.7
date	2012.12.25.09.37.00;	author svnexp;	state Exp;
branches;
next	1.6;

1.6
date	2012.11.17.04.41.47;	author svnexp;	state Exp;
branches;
next	1.5;

1.5
date	2012.11.17.01.54.39;	author svnexp;	state Exp;
branches;
next	1.4;

1.4
date	2012.09.21.19.03.25;	author dteske;	state Exp;
branches;
next	1.3;

1.3
date	2012.09.21.01.36.20;	author dteske;	state Exp;
branches;
next	1.2;

1.2
date	2012.09.18.22.28.42;	author dteske;	state Exp;
branches;
next	1.1;

1.1
date	2012.07.14.03.16.57;	author dteske;	state Exp;
branches;
next	;

1.18.2.1
date	2013.06.25.00.35.22;	author svnexp;	state dead;
branches;
next	1.18.2.2;

1.18.2.2
date	2013.07.07.20.03.17;	author svnexp;	state Exp;
branches;
next	1.18.2.3;

1.18.2.3
date	2014.03.27.04.02.36;	author svnexp;	state Exp;
branches;
next	;


desc
@@


1.20
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/252987
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@#!/bin/sh
#-
# Copyright (c) 2006-2013 Devin Teske
# 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/bsdconfig/networking/devices 252987 2013-07-07 18:51:44Z dteske $
#
############################################################ INCLUDES

BSDCFG_SHARE="/usr/share/bsdconfig"
. $BSDCFG_SHARE/common.subr || exit 1
f_dprintf "%s: loading includes..." "$0"
f_include $BSDCFG_SHARE/dialog.subr
f_include $BSDCFG_SHARE/mustberoot.subr
f_include $BSDCFG_SHARE/sysrc.subr
f_include $BSDCFG_SHARE/media/tcpip.subr
f_include $BSDCFG_SHARE/networking/device.subr
f_include $BSDCFG_SHARE/networking/ipaddr.subr
f_include $BSDCFG_SHARE/networking/media.subr
f_include $BSDCFG_SHARE/networking/netmask.subr

BSDCFG_LIBE="/usr/libexec/bsdconfig" APP_DIR="120.networking"
f_include_lang $BSDCFG_LIBE/$APP_DIR/include/messages.subr

ipgm=$( f_index_menusel_keyword $BSDCFG_LIBE/$APP_DIR/INDEX "$pgm" )
[ $? -eq $SUCCESS -a "$ipgm" ] && pgm="$ipgm"

############################################################ MAIN

# Incorporate rc-file if it exists
[ -f "$HOME/.bsdconfigrc" ] && f_include "$HOME/.bsdconfigrc"

#
# Process command-line options
#
while getopts h$GETOPTS_STDARGS flag; do
	case "$flag" in
	h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm" ;;
	esac
done
shift $(( $OPTIND - 1 ))

#
# Initialize
#
f_dialog_title "$msg_networking_devices"
f_dialog_backtitle "${ipgm:+bsdconfig }$pgm"
f_mustberoot_init

#
# Launch application main menu
#
defaultitem=
while :; do
	f_dialog_menu_netdev "$defaultitem" || break
	f_dialog_menutag_fetch interface
	defaultitem="$interface"

	#
	# dialog_menu_netdev adds an asterisk (*) to the right of the
	# device name if the interface is active. Remove the asterisk
	# from the device name if present.
	#
	case "$interface" in
	*\*) interface="${interface%?}" ;;
	esac

	#
	# Obtain initial interface settings to be configured. These will be
	# passed to the f_dialog_menu_netdev_edit function-call below which
	# will block until the user has either cancelled or finished editing
	# the values.
	#
	# First, attempt to read stored configuration from rc.conf(5) and
	# fallback to reading the active configuration if not configured in
	# the rc.conf(5) file(s).
	#
	dhcp=
	_ipaddr=
	_netmask=
	_ifconfig=$( f_sysrc_get ifconfig_$interface )
	if [ "$_ifconfig" ]; then
		# If DHCP, get IP address/netmask later from ifconfig(8)
		glob="[Dd][Hh][Cc][Pp]"
		case "$_ifconfig" in
		$glob) dhcp=1 ;;
		[Ss][Yy][Nn][Cc]$glob) dhcp=1 ;;
		[Nn][Oo][Ss][Yy][Nn][Cc]$glob) dhcp=1 ;;
		*)
			#
			# Get IP address/netmask from rc.conf(5) configuration
			#
			dhcp=
			eval "$(
				exec 2> /dev/null
				set -- $_ifconfig
				while [ $# -gt 0 ]; do
					case "$1" in
					inet)
						shift 1
						echo "_ipaddr='$1'"
						;;
					netmask)
						shift 1
						echo "_netmask='$1'"
						;;
					esac
					shift 1
				done
			)"
			;;
		esac
	fi

	#
	# Fill in IP address/netmask from active settings if no
	# configuration could be extrapolated from rc.conf(5)
	#
	[ "$_ipaddr"  ] || _ipaddr=$( f_ifconfig_inet $interface )
	[ "$_netmask" ] || _netmask=$( f_ifconfig_netmask $interface )

	# Get the extra options (this always comes from rc.conf(5))
	_options=$( f_ifconfig_options $interface )

	# Block on user-configuration of the probed settings
	f_dialog_menu_netdev_edit \
		"$interface" "$_ipaddr" "$_netmask" "$_options" $dhcp

	# Return to root menu if above returns success
	[ $? -eq $SUCCESS ] && break
done

exit $SUCCESS

################################################################################
# END
################################################################################
@


1.19
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/252980
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d16 1
a16 1
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING BUT NOT LIMITED TO, THE
d20 1
a20 1
# DAMAGES (INLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
d27 1
a27 1
# $FreeBSD: head/usr.sbin/bsdconfig/networking/devices 252980 2013-07-07 18:21:30Z dteske $
@


1.18
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/252178
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d4 1
a4 1
# All Rights Reserved.
d27 1
a27 1
# $FreeBSD: head/usr.sbin/bsdconfig/networking/devices 252178 2013-06-24 20:58:54Z dteske $
@


1.18.2.1
log
@file devices was added on branch RELENG_9 on 2013-07-07 20:03:17 +0000
@
text
@d1 158
@


1.18.2.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/252995
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 158
#!/bin/sh
#-
# Copyright (c) 2006-2013 Devin Teske
# 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: stable/9/usr.sbin/bsdconfig/networking/devices 252995 2013-07-07 19:13:34Z dteske $
#
############################################################ INCLUDES

BSDCFG_SHARE="/usr/share/bsdconfig"
. $BSDCFG_SHARE/common.subr || exit 1
f_dprintf "%s: loading includes..." "$0"
f_include $BSDCFG_SHARE/dialog.subr
f_include $BSDCFG_SHARE/mustberoot.subr
f_include $BSDCFG_SHARE/sysrc.subr
f_include $BSDCFG_SHARE/media/tcpip.subr
f_include $BSDCFG_SHARE/networking/device.subr
f_include $BSDCFG_SHARE/networking/ipaddr.subr
f_include $BSDCFG_SHARE/networking/media.subr
f_include $BSDCFG_SHARE/networking/netmask.subr

BSDCFG_LIBE="/usr/libexec/bsdconfig" APP_DIR="120.networking"
f_include_lang $BSDCFG_LIBE/$APP_DIR/include/messages.subr

ipgm=$( f_index_menusel_keyword $BSDCFG_LIBE/$APP_DIR/INDEX "$pgm" )
[ $? -eq $SUCCESS -a "$ipgm" ] && pgm="$ipgm"

############################################################ MAIN

# Incorporate rc-file if it exists
[ -f "$HOME/.bsdconfigrc" ] && f_include "$HOME/.bsdconfigrc"

#
# Process command-line options
#
while getopts h$GETOPTS_STDARGS flag; do
	case "$flag" in
	h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm" ;;
	esac
done
shift $(( $OPTIND - 1 ))

#
# Initialize
#
f_dialog_title "$msg_networking_devices"
f_dialog_backtitle "${ipgm:+bsdconfig }$pgm"
f_mustberoot_init

#
# Launch application main menu
#
defaultitem=
while :; do
	f_dialog_menu_netdev "$defaultitem" || break
	f_dialog_menutag_fetch interface
	defaultitem="$interface"

	#
	# dialog_menu_netdev adds an asterisk (*) to the right of the
	# device name if the interface is active. Remove the asterisk
	# from the device name if present.
	#
	case "$interface" in
	*\*) interface="${interface%?}" ;;
	esac

	#
	# Obtain initial interface settings to be configured. These will be
	# passed to the f_dialog_menu_netdev_edit function-call below which
	# will block until the user has either cancelled or finished editing
	# the values.
	#
	# First, attempt to read stored configuration from rc.conf(5) and
	# fallback to reading the active configuration if not configured in
	# the rc.conf(5) file(s).
	#
	dhcp=
	_ipaddr=
	_netmask=
	_ifconfig=$( f_sysrc_get ifconfig_$interface )
	if [ "$_ifconfig" ]; then
		# If DHCP, get IP address/netmask later from ifconfig(8)
		glob="[Dd][Hh][Cc][Pp]"
		case "$_ifconfig" in
		$glob) dhcp=1 ;;
		[Ss][Yy][Nn][Cc]$glob) dhcp=1 ;;
		[Nn][Oo][Ss][Yy][Nn][Cc]$glob) dhcp=1 ;;
		*)
			#
			# Get IP address/netmask from rc.conf(5) configuration
			#
			dhcp=
			eval "$(
				exec 2> /dev/null
				set -- $_ifconfig
				while [ $# -gt 0 ]; do
					case "$1" in
					inet)
						shift 1
						echo "_ipaddr='$1'"
						;;
					netmask)
						shift 1
						echo "_netmask='$1'"
						;;
					esac
					shift 1
				done
			)"
			;;
		esac
	fi

	#
	# Fill in IP address/netmask from active settings if no
	# configuration could be extrapolated from rc.conf(5)
	#
	[ "$_ipaddr"  ] || _ipaddr=$( f_ifconfig_inet $interface )
	[ "$_netmask" ] || _netmask=$( f_ifconfig_netmask $interface )

	# Get the extra options (this always comes from rc.conf(5))
	_options=$( f_ifconfig_options $interface )

	# Block on user-configuration of the probed settings
	f_dialog_menu_netdev_edit \
		"$interface" "$_ipaddr" "$_netmask" "$_options" $dhcp

	# Return to root menu if above returns success
	[ $? -eq $SUCCESS ] && break
done

exit $SUCCESS

################################################################################
# END
################################################################################
@


1.18.2.3
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/263791
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d27 1
a27 1
# $FreeBSD: stable/9/usr.sbin/bsdconfig/networking/devices 263791 2014-03-27 03:20:47Z dteske $
a30 6
# Prevent device.subr (included indirectly) from auto scanning; this will be
# performed indirectly later via f_dialog_menu_netdev() -- but only after we've
# successfully completed f_mustberoot_init().
#
DEVICE_SELF_SCAN_ALL=NO

d46 2
a47 2
f_index_menusel_keyword $BSDCFG_LIBE/$APP_DIR/INDEX "$pgm" ipgm &&
	pgm="${ipgm:-$pgm}"
d140 2
a141 2
	[ "$_ipaddr"  ] || f_ifconfig_inet $interface _ipaddr
	[ "$_netmask" ] || f_ifconfig_netmask $interface _netmask
d151 1
a151 1
	[ $? -eq $DIALOG_OK ] && break
@


1.17
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/252001
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d27 1
a27 1
# $FreeBSD: head/usr.sbin/bsdconfig/networking/devices 252001 2013-06-19 18:32:18Z dteske $
d59 1
a59 1
	h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm";;
@


1.16
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/251926
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d27 1
a27 1
# $FreeBSD: head/usr.sbin/bsdconfig/networking/devices 251926 2013-06-18 09:41:34Z dteske $
d86 1
a86 1
	*\*) interface="${interface%?}";;
d107 3
a109 3
		$glob) dhcp=1;;
		[Ss][Yy][Nn][Cc]$glob) dhcp=1;;
		[Nn][Oo][Ss][Yy][Nn][Cc]$glob) dhcp=1;;
d115 17
a131 16
			eval "$( exec 2> /dev/null
			         set -- $_ifconfig
			         while [ $# -gt 0 ]; do
			         	case "$1" in
			         	inet)
			         		shift 1
			         		echo "_ipaddr='$1'"
			         		;;
			         	netmask)
			         		shift 1
			         		echo "_netmask='$1'"
			         		;;
			         	esac
			         	shift 1
			         done
			       )"
@


1.15
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/251269
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d27 1
a27 1
# $FreeBSD: head/usr.sbin/bsdconfig/networking/devices 251269 2013-06-02 23:02:56Z dteske $
d104 1
a104 1
		# If DHCP get IP address/netmask later from ifconfig(8)
d112 1
a112 2
			# Get IP address/netmask from rc.conf(5)
			# configuration
a150 1

@


1.14
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/251236
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d27 1
a27 1
# $FreeBSD: head/usr.sbin/bsdconfig/networking/devices 251236 2013-06-01 23:58:44Z dteske $
d74 1
a74 1
defaultitem=""
@


1.13
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/250633
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d27 1
a27 1
# $FreeBSD: head/usr.sbin/bsdconfig/networking/devices 250633 2013-05-14 03:21:13Z dteske $
d76 2
a77 3
	f_dialog_menu_netdev "$defaultitem"
	retval=$?
	interface=$( f_dialog_menutag )
a79 2
	[ $retval -eq 0 ] || break

@


1.12
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/249753
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d27 1
a27 1
# $FreeBSD: head/usr.sbin/bsdconfig/networking/devices 249753 2013-04-22 06:10:27Z dteske $
d57 1
a57 1
while getopts dD:hSX flag; do
@


1.11
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/249751
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d27 1
a27 1
# $FreeBSD: head/usr.sbin/bsdconfig/networking/devices 249751 2013-04-22 05:52:06Z dteske $
d102 1
d151 1
a151 1
		$interface $_ipaddr $_netmask "$_options" $dhcp
@


1.10
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/249746
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d27 1
a27 1
# $FreeBSD: head/usr.sbin/bsdconfig/networking/devices 249746 2013-04-22 05:02:34Z dteske $
d74 1
d76 1
a76 1
	f_dialog_menu_netdev
d79 1
@


1.9
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/247280
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d27 1
a27 1
# $FreeBSD: head/usr.sbin/bsdconfig/networking/devices 247280 2013-02-25 19:55:32Z dteske $
d57 1
a57 1
while getopts hSX flag; do
@


1.8
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/244675
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d3 1
a3 1
# Copyright (c) 2006-2012 Devin Teske
d27 1
a27 1
# $FreeBSD: head/usr.sbin/bsdconfig/networking/devices 244675 2012-12-25 10:47:45Z dteske $
d37 1
@


1.7
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/244674
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d27 1
a27 1
# $FreeBSD: head/usr.sbin/bsdconfig/networking/devices 244674 2012-12-25 09:30:25Z dteske $
d33 1
@


1.6
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/243112
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r243112 | dteske | 2012-11-16 00:59:11 +0000 (Fri, 16 Nov 2012) | 11 lines
## SVN ##
## SVN ## Replicate a feature from sysinstall documented in
## SVN ## stable/9/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 ## To get a list of modules you can link to, see `bsdconfig -h' output.
## SVN ##
## SVN ## Approved by:	adrian (co-mentor) (implicit)
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d27 1
a27 1
# $FreeBSD: head/usr.sbin/bsdconfig/networking/devices 243112 2012-11-16 00:59:11Z dteske $
a64 1
f_dialog_init
@


1.5
log
@Switching exporter and resync
@
text
@d27 1
a27 1
# $FreeBSD: head/usr.sbin/bsdconfig/networking/devices 240783 2012-09-21 19:03:25Z dteske $
d44 1
a44 1
ipgm=$( f_index_menu_selection $BSDCFG_LIBE/$APP_DIR/INDEX "$pgm" )
@


1.4
log
@SVN rev 240783 on 2012-09-21 19:03:25Z by dteske

Reverse SVN r240770 -- jilles@@ made a suggestion that allowed us to redesign
our embedded rescue environment to support /dev/null making r240770 obsolete.

Reviewed by:	jilles, adrian (co-mentor)
Approved by:	jilles, adrian (co-mentor)
@
text
@d27 1
a27 1
# $FreeBSD$
@


1.3
log
@SVN rev 240770 on 2012-09-21 01:36:20Z by dteske

Replace redirections to /dev/null with "close file-descriptor" syntax (>&-).

Reviewed by:	adrian (co-mentor)
Approved by:	adrian (co-mentor)
@
text
@d115 1
a115 1
			eval "$( exec 2>&-
@


1.2
log
@SVN rev 240684 on 2012-09-18 22:28:42Z by dteske

Move major includes into /usr/share/bsdconfig for easy external access.

Reviewed by:	adrian (co-mentor)
Approved by:	adrian (co-mentor)
@
text
@d115 1
a115 1
			eval "$( exec 2> /dev/null
@


1.1
log
@SVN rev 238438 on 2012-07-14 03:16:57Z by dteske

Import bsdconfig(8) as a replacement for the post-install abilities of
deprecated sysinstall(8). NOTE: WITH_BSDCONFIG is currently required.

Submitted by:	Devin Teske (dteske), Ron McDowell <rcm@@fuzzwad.org>
Reviewed by:	Ron McDowell <rcm@@fuzzwad.org>
Approved by:	Ed Maste (emaste)
@
text
@d31 11
a41 11
BSDCFG_LIBE="/usr/libexec/bsdconfig"
. $BSDCFG_LIBE/include/common.subr || exit 1
f_include $BSDCFG_LIBE/include/dialog.subr
f_include $BSDCFG_LIBE/include/mustberoot.subr
f_include $BSDCFG_LIBE/include/sysrc.subr

APP_DIR="120.networking"
f_include $BSDCFG_LIBE/$APP_DIR/include/device.subr
f_include $BSDCFG_LIBE/$APP_DIR/include/ipaddr.subr
f_include $BSDCFG_LIBE/$APP_DIR/include/media.subr
f_include $BSDCFG_LIBE/$APP_DIR/include/netmask.subr
@

