svn commit: r309941 - head/usr.sbin/bsdinstall/scripts
Devin Teske
dteske at FreeBSD.org
Mon Dec 12 21:00:10 UTC 2016
Author: dteske
Date: Mon Dec 12 21:00:09 2016
New Revision: 309941
URL: https://svnweb.freebsd.org/changeset/base/309941
Log:
Use provided API to centralize dialog title strings
Modified:
head/usr.sbin/bsdinstall/scripts/wlanconfig
Modified: head/usr.sbin/bsdinstall/scripts/wlanconfig
==============================================================================
--- head/usr.sbin/bsdinstall/scripts/wlanconfig Mon Dec 12 20:54:20 2016 (r309940)
+++ head/usr.sbin/bsdinstall/scripts/wlanconfig Mon Dec 12 21:00:09 2016 (r309941)
@@ -108,10 +108,11 @@ dialog_country_select()
}
}' | sort -k 2 | tr '\n' ' ' )
- f_dialog_menu_size height width rows "Regdomain selection" \
+ f_dialog_title "Regdomain selection"
+ f_dialog_menu_size height width rows "$DIALOG_TITLE" \
"$DIALOG_BACKTITLE" "Select your regdomain." "" $regdomains
regdomain=$( sh -c "$DIALOG \
- --title \"Regdomain selection\" \
+ --title \"$DIALOG_TITLE\" \
--backtitle \"$DIALOG_BACKTITLE\" \
--cancel-label \"Skip\" \
--default-item \"$default_regdomain\" \
@@ -121,10 +122,11 @@ dialog_country_select()
$height $width $rows $regdomains"
)
- f_dialog_menu_size height width rows "Country selection" \
+ f_dialog_title "Country selection"
+ f_dialog_menu_size height width rows "$DIALOG_TITLE" \
"$DIALOG_BACKTITLE" "Select your country." "" $countries
country=$( sh -c "$DIALOG \
- --title \"Country selection\" \
+ --title \"$DIALOG_TITLE\" \
--backtitle \"$DIALOG_BACKTITLE\" \
--cancel-label \"Skip\" \
--default-item \"$default_country\" \
@@ -181,8 +183,9 @@ if [ "$BSDINSTALL_CONFIGCURRENT" ]; then
DEF_COUNTRY=$( echo $INPUT | cut -w -f 4 )
[ "$DEF_REGDOMAIN" = 0 ] && DEF_REGDOMAIN="<not selected>"
[ "$DEF_COUNTRY" = 0 ] && DEF_COUNTRY="<not selected>"
+ f_dialog_title "Regdomain/country"
$DIALOG \
- --title "Regdomain/country" \
+ --title "$DIALOG_TITLE" \
--backtitle "$DIALOG_BACKTITLE" \
--yesno "Change regdomain/country (now $DEF_REGDOMAIN/$DEF_COUNTRY)?" \
0 0
@@ -201,8 +204,9 @@ while :; do
SCANSSID=0
output=$( wpa_cli scan 2>&1 )
f_dprintf "%s" "$output"
+ f_dialog_title "Scanning"
$DIALOG \
- --title "Scanning" \
+ --title "$DIALOG_TITLE" \
--backtitle "$DIALOG_BACKTITLE" \
--ok-label "Skip" \
--pause "Waiting 5 seconds to scan for wireless networks..." \
@@ -217,17 +221,19 @@ while :; do
' | sort | uniq )
if [ ! "$NETWORKS" ]; then
+ f_dialog_title "Error"
$DIALOG \
- --title "Error" \
+ --title "$DIALOG_TITLE" \
--backtitle "$DIALOG_BACKTITLE" \
--yesno "No wireless networks were found. Rescan?" \
0 0 && continue
exit 1
fi
+ f_dialog_title "Network Selection"
exec 3>&1
NETWORK=$( sh -c "$DIALOG \
- --title \"Network Selection\" \
+ --title \"$DIALOG_TITLE\" \
--backtitle \"$DIALOG_BACKTITLE\" \
--extra-button \
--extra-label \"Rescan\" \
More information about the svn-src-all
mailing list