options.subr (251236) | options.subr (251264) |
---|---|
1if [ ! "$_MEDIA_OPTIONS_SUBR" ]; then _MEDIA_OPTIONS_SUBR=1 2# 3# Copyright (c) 2012-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# | 1if [ ! "$_MEDIA_OPTIONS_SUBR" ]; then _MEDIA_OPTIONS_SUBR=1 2# 3# Copyright (c) 2012-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/share/media/options.subr 251236 2013-06-01 23:58:44Z dteske $ | 27# $FreeBSD: head/usr.sbin/bsdconfig/share/media/options.subr 251264 2013-06-02 20:02:50Z dteske $ |
28# 29############################################################ INCLUDES 30 31BSDCFG_SHARE="/usr/share/bsdconfig" 32. $BSDCFG_SHARE/common.subr || exit 1 33f_dprintf "%s: loading includes..." media/options.subr 34f_include $BSDCFG_SHARE/dialog.subr 35f_include $BSDCFG_SHARE/struct.subr --- 12 unchanged lines hidden (view full) --- 48# 49# Prompt the user to confirm/edit various media settings. Returns success. 50# 51f_media_options_menu() 52{ 53 f_dialog_title "$msg_options_editor" 54 local title="$DIALOG_TITLE" btitle="$DIALOG_BACKTITLE" 55 f_dialog_title_restore | 28# 29############################################################ INCLUDES 30 31BSDCFG_SHARE="/usr/share/bsdconfig" 32. $BSDCFG_SHARE/common.subr || exit 1 33f_dprintf "%s: loading includes..." media/options.subr 34f_include $BSDCFG_SHARE/dialog.subr 35f_include $BSDCFG_SHARE/struct.subr --- 12 unchanged lines hidden (view full) --- 48# 49# Prompt the user to confirm/edit various media settings. Returns success. 50# 51f_media_options_menu() 52{ 53 f_dialog_title "$msg_options_editor" 54 local title="$DIALOG_TITLE" btitle="$DIALOG_BACKTITLE" 55 f_dialog_title_restore |
56 local prompt="" | 56 local prompt= 57 local menu_list # Calculated below 58 local defaultitem= |
57 local hline="$hline_arrows_tab_enter" | 59 local hline="$hline_arrows_tab_enter" |
58 local menu_list cp | |
59 60 # 61 # A hack so that the dialogs below are always interactive in a script 62 # 63 local old_interactive= 64 if ! f_interactive; then 65 f_getvar $VAR_NONINTERACTIVE old_interactive 66 unset $VAR_NONINTERACTIVE 67 fi 68 | 60 61 # 62 # A hack so that the dialogs below are always interactive in a script 63 # 64 local old_interactive= 65 if ! f_interactive; then 66 f_getvar $VAR_NONINTERACTIVE old_interactive 67 unset $VAR_NONINTERACTIVE 68 fi 69 |
69 local defaultitem= | 70 local cp |
70 while :; do 71 menu_list="" 72 73 f_getvar $VAR_NFS_SECURE cp 74 if [ "$cp" = "YES" ]; then menu_list="$menu_list 75 ' $msg_nfs_secure' 'YES' 76 '$msg_nfs_server_talks_only_on_a_secure_port'" 77 else menu_list="$menu_list --- 257 unchanged lines hidden --- | 71 while :; do 72 menu_list="" 73 74 f_getvar $VAR_NFS_SECURE cp 75 if [ "$cp" = "YES" ]; then menu_list="$menu_list 76 ' $msg_nfs_secure' 'YES' 77 '$msg_nfs_server_talks_only_on_a_secure_port'" 78 else menu_list="$menu_list --- 257 unchanged lines hidden --- |