Lines Matching +full:display +full:- +full:interface

3 # Copyright (c) 2006-2016 Devin Teske
61 # Display a list of network devices with descriptions. Optionally, if present
62 # and non-NULL, initially highlight $default interface.
70 # Display a message to let the user know we're working...
85 lo[0-9]*|ppp[0-9]*|sl[0-9]*) continue ;;
132 # Ask user to select an interface
145 --title \"\$DIALOG_TITLE\" \
146 --backtitle \"\$DIALOG_BACKTITLE\" \
147 --hline \"\$hline\" \
148 --ok-label \"\$msg_ok\" \
149 --cancel-label \"\$msg_cancel\" \
150 --default-item \"\$defaultitem\" \
151 --menu \"\$prompt\" \
157 f_dialog_menutag_store -s "$menu_choice"
161 # f_dialog_menu_netdev_edit $interface $ipaddr $netmask $options $dhcp
163 # Allow a user to edit network interface settings. Current values are not
169 local interface="$1" ipaddr="$2" netmask="$3" options="$4" dhcp="$5"
173 # Create a duplicate set of variables for change-tracking...
181 f_sprintf prompt "$msg_network_configuration" "$interface"
185 # components of the network interface.
188 # - IP Address
189 # - Network subnet mask
190 # - Additional ifconfig(8) options
193 # changes effective because all three options must be specified at-once
202 if f_device_is_wireless "$interface"; then
203 wlans=$( f_sysrc_get "wlans_$interface" )
205 [ -e "$( f_sysrc_get wpa_supplicant_conf_file )" ] &&
210 # Display configuration-edit menu
214 " # END-QUOTE
215 f_device_is_wireless "$interface" && menu_list="$menu_list
218 " # END-QUOTE
224 " # END-QUOTE
233 --title \"\$DIALOG_TITLE\" \
234 --backtitle \"\$DIALOG_BACKTITLE\" \
235 --hline \"\$hline\" \
236 --ok-label \"\$msg_ok\" \
237 --cancel-label \"\$msg_cancel\" \
238 --help-button \
239 --help-label \"\$msg_help\" \
240 ${USE_XDIALOG:+--help \"\"} \
241 --default-item \"\$defaultitem\" \
242 --menu \"\$prompt\" \
250 if [ $retval -eq $DIALOG_HELP ]; then
253 elif [ $retval -ne $DIALOG_OK ]; then
256 # Only update default-item on success
262 # input from the user and assign the newly-acquired values back
263 # to the ipaddr, netmask, and options variables for us to re-
264 # read and display in the summary dialog.
270 "$interface" "${wlans%%[$IFS]*}" ;;
272 # Proceed cautiously (confirm with the user) if/when NFS-
279 "$interface" "$dhcp_status"
290 trap - SIGINT
291 ( # Execute within sub-shell to allow/catch Ctrl-C
293 f_sprintf msg "$msg_scanning_for_dhcp" "$interface"
296 f_quietly ifconfig "$interface" delete
297 f_quietly dhclient "$interface"
302 f_quietly ifconfig "$interface" delete
303 f_quietly dhclient "$interface"
308 if [ $retval -eq $DIALOG_OK ]; then
310 f_ifconfig_inet "$interface" ipaddr
311 f_ifconfig_inet6 "$interface" ipaddr6
312 f_ifconfig_netmask "$interface" netmask
317 'hostname:-$(hostname)' )
322 3\ *) f_dialog_input_ipaddr "$interface" "$ipaddr"
323 [ $? -eq $DIALOG_OK ] && dhcp= ;;
324 4\ *) f_dialog_input_netmask "$interface" "$netmask"
325 [ $? -eq $DIALOG_OK -a "$_netmask" ] && dhcp= ;;
326 5\ *) f_dialog_menu_media_options "$interface" "$options"
327 [ $? -eq $DIALOG_OK ] && dhcp= ;;
332 # Save only if the user changed at least one feature of the interface
334 if [ "$ipaddr" != "$ipaddr_orig" -o \
335 "$netmask" != "$netmask_orig" -o \
336 "$options" != "$options_orig" -o \
339 f_show_info "$msg_saving_network_interface" "$interface"
352 'f_sysrc_set "ifconfig_%s" "%s"' "$interface" "$value"
359 if f_yesno "$msg_bring_interface_up" "$interface"
361 f_show_info "$msg_bring_interface_up" "$interface"
364 if [ "$dr" = "NO" -o ! "$dr" ]; then
374 # DHCP on FreeBSD-8.x (normally lost as ifconfig(8)
376 # resolv.conf(5) by-default upon termination).
378 f_quietly cp -fp "$RESOLV_CONF" "$RESOLV_CONF.$$"
381 "$interface" "$ipaddr" "$netmask" "$options"
383 [ "$dr" -a "$dr" != "NO" ] &&
387 if cmp -s "$RESOLV_CONF" "$RESOLV_CONF.$$"; then
388 f_quietly rm -f "$RESOLV_CONF.$$"
390 f_quietly mv -f "$RESOLV_CONF.$$" "$RESOLV_CONF"