diff options
Diffstat (limited to 'usr.sbin/bsdconfig/networking')
-rw-r--r-- | usr.sbin/bsdconfig/networking/share/media.subr | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/usr.sbin/bsdconfig/networking/share/media.subr b/usr.sbin/bsdconfig/networking/share/media.subr index a2bbdf7..8ae20e5 100644 --- a/usr.sbin/bsdconfig/networking/share/media.subr +++ b/usr.sbin/bsdconfig/networking/share/media.subr @@ -222,13 +222,16 @@ f_dialog_menu_media_options() if [ $retval -eq $SUCCESS ]; then options=$( eval f_dialog_menutag2item \"\$tag\" \ $supported_media ) - [ "$options" = "$opt_none" ] && options= - - if [ "$options" = "$opt_cust" ]; then + case "$options" in + "$opt_none") + options= + ;; + "$opt_cust") options="$_options" f_dialog_input_options "$interface" retval=$? - fi + ;; + esac fi return $retval |