media.subr (3b8f08459569bf0faa21473e5cec2491e95c9349) media.subr (d356ca0c3ffa363d5bfbc237b44f53b3f88fd415)
1if [ ! "$_NETWORKING_MEDIA_SUBR" ]; then _NETWORKING_MEDIA_SUBR=1
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:

--- 166 unchanged lines hidden (view full) ---

175 # Build list of additional media options
176 #
177 local opt_none="$msg_no_options"
178 local opt_cust="$msg_custom"
179 local supported_media="$(
180 f_ifconfig_media $interface | \
181 ( index=1
182
1if [ ! "$_NETWORKING_MEDIA_SUBR" ]; then _NETWORKING_MEDIA_SUBR=1
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:

--- 166 unchanged lines hidden (view full) ---

175 # Build list of additional media options
176 #
177 local opt_none="$msg_no_options"
178 local opt_cust="$msg_custom"
179 local supported_media="$(
180 f_ifconfig_media $interface | \
181 ( index=1
182
183 echo "'$( f_substr "$DIALOG_MENU_TAGS" $index 1 )'"
184 echo "'$opt_none'"
183 f_substr -v tagn "$DIALOG_MENU_TAGS" $index 1
184 echo "'$tagn' '$opt_none'"
185 index=$(( $index + 1 ))
186
185 index=$(( $index + 1 ))
186
187 echo "'$( f_substr "$DIALOG_MENU_TAGS" $index 1 )'"
188 echo "'$opt_cust'"
187 f_substr -v tagn "$DIALOG_MENU_TAGS" $index 1
188 echo "'$tagn' '$opt_cust'"
189 index=$(( $index + 1 ))
190
191 while read media_options; do
192 [ $index -lt ${#DIALOG_MENU_TAGS} ] || break
189 index=$(( $index + 1 ))
190
191 while read media_options; do
192 [ $index -lt ${#DIALOG_MENU_TAGS} ] || break
193 echo "'$( f_substr "$DIALOG_MENU_TAGS" $index 1 )'"
194 echo "'$media_options'"
193 f_substr -v tagn "$DIALOG_MENU_TAGS" $index 1
194 echo "'$tagn' '$media_options'"
195 index=$(( $index + 1 ))
196 done
197 )
198 )"
199
200 local msg
201 if [ "$USE_XDIALOG" ]; then
202 f_sprintf msg "$xmsg_supported_media_options" \

--- 45 unchanged lines hidden ---
195 index=$(( $index + 1 ))
196 done
197 )
198 )"
199
200 local msg
201 if [ "$USE_XDIALOG" ]; then
202 f_sprintf msg "$xmsg_supported_media_options" \

--- 45 unchanged lines hidden ---