device.subr (fb7d723e6bb1b81ac1e34e86be13e9806247a2c3) | device.subr (198a44b55db62db24fe4174e090d0d692e7e2513) |
---|---|
1if [ ! "$_NETWORKING_DEVICE_SUBR" ]; then _NETWORKING_DEVICE_SUBR=1 2# 3# Copyright (c) 2006-2012 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: --- 28 unchanged lines hidden (view full) --- 37f_include $BSDCFG_SHARE/networking/media.subr 38f_include $BSDCFG_SHARE/networking/netmask.subr 39f_include $BSDCFG_SHARE/networking/resolv.subr 40f_include $BSDCFG_SHARE/networking/routing.subr 41 42BSDCFG_LIBE="/usr/libexec/bsdconfig" APP_DIR="120.networking" 43f_include_lang $BSDCFG_LIBE/$APP_DIR/include/messages.subr 44 | 1if [ ! "$_NETWORKING_DEVICE_SUBR" ]; then _NETWORKING_DEVICE_SUBR=1 2# 3# Copyright (c) 2006-2012 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: --- 28 unchanged lines hidden (view full) --- 37f_include $BSDCFG_SHARE/networking/media.subr 38f_include $BSDCFG_SHARE/networking/netmask.subr 39f_include $BSDCFG_SHARE/networking/resolv.subr 40f_include $BSDCFG_SHARE/networking/routing.subr 41 42BSDCFG_LIBE="/usr/libexec/bsdconfig" APP_DIR="120.networking" 43f_include_lang $BSDCFG_LIBE/$APP_DIR/include/messages.subr 44 |
45TCP_HELPFILE=$BSDCFG_LIBE/$APP_DIR/include/tcp.hlp 46 |
|
45############################################################ GLOBALS 46 47# 48# Settings used while interacting with various dialog(1) menus 49# 50: ${DIALOG_MENU_NETDEV_KICK_INTERFACES=1} 51: ${DIALOG_MENU_NETDEV_SLEEP_AFTER_KICK=3} 52 --- 284 unchanged lines hidden (view full) --- 337 $menu_list ) 338 local dialog_menu 339 dialog_menu=$( eval $DIALOG \ 340 --clear --title \"\$DIALOG_TITLE\" \ 341 --backtitle \"\$DIALOG_BACKTITLE\" \ 342 --hline \"\$hline\" \ 343 --ok-label \"\$msg_ok\" \ 344 --cancel-label \"\$msg_cancel\" \ | 47############################################################ GLOBALS 48 49# 50# Settings used while interacting with various dialog(1) menus 51# 52: ${DIALOG_MENU_NETDEV_KICK_INTERFACES=1} 53: ${DIALOG_MENU_NETDEV_SLEEP_AFTER_KICK=3} 54 --- 284 unchanged lines hidden (view full) --- 339 $menu_list ) 340 local dialog_menu 341 dialog_menu=$( eval $DIALOG \ 342 --clear --title \"\$DIALOG_TITLE\" \ 343 --backtitle \"\$DIALOG_BACKTITLE\" \ 344 --hline \"\$hline\" \ 345 --ok-label \"\$msg_ok\" \ 346 --cancel-label \"\$msg_cancel\" \ |
347 --help-button \ 348 ${USE_XDIALOG:+--help \"\"} \ |
|
345 --menu \"\$prompt\" $size \ 346 $menu_list \ 347 2>&1 >&$DIALOG_TERMINAL_PASSTHRU_FD 348 ) 349 350 local retval=$? 351 setvar DIALOG_MENU_$$ "$dialog_menu" 352 local tag="$( f_dialog_menutag )" 353 | 349 --menu \"\$prompt\" $size \ 350 $menu_list \ 351 2>&1 >&$DIALOG_TERMINAL_PASSTHRU_FD 352 ) 353 354 local retval=$? 355 setvar DIALOG_MENU_$$ "$dialog_menu" 356 local tag="$( f_dialog_menutag )" 357 |
354 # Return if "Cancel" was chosen (-1) or ESC was pressed (255) 355 [ $retval -eq $SUCCESS ] || return $retval | 358 if [ $retval -eq 2 ]; then 359 # The Help button was pressed 360 f_show_help "$TCP_HELPFILE" 361 continue 362 elif [ $retval -ne $SUCCESS ]; then 363 # "Cancel" was chosen (-1) or ESC was pressed (255) 364 return $retval 365 fi |
356 357 # 358 # Call the below ``modifier functions'' whose job it is to take 359 # input from the user and assign the newly-acquired values back 360 # to the ipaddr, netmask, and options variables for us to re- 361 # read and display in the summary dialog. 362 # 363 case "$tag" in --- 134 unchanged lines hidden --- | 366 367 # 368 # Call the below ``modifier functions'' whose job it is to take 369 # input from the user and assign the newly-acquired values back 370 # to the ipaddr, netmask, and options variables for us to re- 371 # read and display in the summary dialog. 372 # 373 case "$tag" in --- 134 unchanged lines hidden --- |