svn commit: r309962 - head/usr.sbin/bsdinstall/scripts
Devin Teske
dteske at FreeBSD.org
Tue Dec 13 00:27:57 UTC 2016
Author: dteske
Date: Tue Dec 13 00:27:56 2016
New Revision: 309962
URL: https://svnweb.freebsd.org/changeset/base/309962
Log:
More efficiently make use of the exit status
Modified:
head/usr.sbin/bsdinstall/scripts/wlanconfig
Modified: head/usr.sbin/bsdinstall/scripts/wlanconfig
==============================================================================
--- head/usr.sbin/bsdinstall/scripts/wlanconfig Tue Dec 13 00:22:01 2016 (r309961)
+++ head/usr.sbin/bsdinstall/scripts/wlanconfig Tue Dec 13 00:27:56 2016 (r309962)
@@ -67,12 +67,8 @@ country_set()
--no-label Ignore \
--yesno \
"Error while applying chosen settings ($error_str)" \
- 0 0
- if [ $? -eq $DIALOG_OK ]; then
- return $FAILURE # Restart
- else
- return $SUCCESS # Skip
- fi
+ 0 0 || return $SUCCESS # Skip
+ return $FAILURE # Restart
else
awk 'sub(/^\t\t/,"")||1' \
> "$BSDINSTALL_TMPETC/rc.conf.net.wlan" <<-EOF
More information about the svn-src-all
mailing list