1#!/bin/sh 2#- 3# Copyright (c) 2006-2013 Devin Teske 4# All Rights Reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions 8# are met: --- 10 unchanged lines hidden (view full) --- 19# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20# DAMAGES (INLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25# SUCH DAMAGE. 26# |
27# $FreeBSD: head/usr.sbin/bsdconfig/networking/devices 251236 2013-06-01 23:58:44Z dteske $ |
28# 29############################################################ INCLUDES 30 31BSDCFG_SHARE="/usr/share/bsdconfig" 32. $BSDCFG_SHARE/common.subr || exit 1 33f_dprintf "%s: loading includes..." "$0" 34f_include $BSDCFG_SHARE/dialog.subr 35f_include $BSDCFG_SHARE/mustberoot.subr --- 32 unchanged lines hidden (view full) --- 68f_dialog_backtitle "${ipgm:+bsdconfig }$pgm" 69f_mustberoot_init 70 71# 72# Launch application main menu 73# 74defaultitem="" 75while :; do |
76 f_dialog_menu_netdev "$defaultitem" || break 77 f_dialog_menutag_fetch interface |
78 defaultitem="$interface" 79 |
80 # 81 # dialog_menu_netdev adds an asterisk (*) to the right of the 82 # device name if the interface is active. Remove the asterisk 83 # from the device name if present. 84 # 85 case "$interface" in 86 *\*) interface="${interface%?}";; 87 esac --- 72 unchanged lines hidden --- |