svn commit: r309920 - head/usr.sbin/bsdinstall/scripts
Devin Teske
dteske at FreeBSD.org
Mon Dec 12 18:55:42 UTC 2016
Author: dteske
Date: Mon Dec 12 18:55:41 2016
New Revision: 309920
URL: https://svnweb.freebsd.org/changeset/base/309920
Log:
Use provided API instead of hard-coded status integers
Modified:
head/usr.sbin/bsdinstall/scripts/wlanconfig
Modified: head/usr.sbin/bsdinstall/scripts/wlanconfig
==============================================================================
--- head/usr.sbin/bsdinstall/scripts/wlanconfig Mon Dec 12 18:52:22 2016 (r309919)
+++ head/usr.sbin/bsdinstall/scripts/wlanconfig Mon Dec 12 18:55:41 2016 (r309920)
@@ -224,10 +224,10 @@ while :; do
--menu \"Select a wireless network to connect to.\" 0 0 0 \
$(echo $NETWORKS | tr '\n' ' ')" 2>&1 1>&3 )
case $? in
- 0) # OK
+ $DIALOG_OK)
break
;;
- 1) # Cancel
+ $DIALOG_CANCEL)
# here we ask if the user wants to select the network manually
f_dialog_title "Network Selection"
f_dialog_yesno "Do you want to select the network manually?" || exit 1
@@ -239,7 +239,7 @@ while :; do
f_dialog_title_restore
break
;;
- 3) # Rescan
+ $DIALOG_EXTRA) # Rescan
;;
esac
exec 3>&-
More information about the svn-src-all
mailing list