Date: Tue, 13 Dec 2016 02:44:33 +0000 (UTC) From: Devin Teske <dteske@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r309991 - head/usr.sbin/bsdinstall/scripts Message-ID: <201612130244.uBD2iXwg070949@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dteske Date: Tue Dec 13 02:44:33 2016 New Revision: 309991 URL: https://svnweb.freebsd.org/changeset/base/309991 Log: Both simplify bringup of interface after changes and catch errors in debug Modified: head/usr.sbin/bsdinstall/scripts/wlanconfig Modified: head/usr.sbin/bsdinstall/scripts/wlanconfig ============================================================================== --- head/usr.sbin/bsdinstall/scripts/wlanconfig Tue Dec 13 02:42:10 2016 (r309990) +++ head/usr.sbin/bsdinstall/scripts/wlanconfig Tue Dec 13 02:44:33 2016 (r309991) @@ -55,11 +55,10 @@ country_set() f_eval_catch -dk error_str wlanconfig ifconfig "ifconfig %s %s" \ "$WLAN_IFACE" "$ifconfig_args" error_str="${error_str#ifconfig: }" - if [ "$iface_up" ]; then - # Restart wpa_supplicant(8) (should not fail). - wpa_supplicant -B -i "$WLAN_IFACE" -c \ - "$BSDINSTALL_TMPETC/wpa_supplicant.conf" - fi + # Restart wpa_supplicant(8) (should not fail). + [ "$iface_up" ] && f_eval_catch -d wlanconfig wpa_supplicant \ + 'wpa_supplicant -B -i "%s" -c "%s/wpa_supplicant.conf"' \ + "$WLAN_IFACE" "$BSDINSTALL_TMPETC" if [ "$error_str" ]; then $DIALOG \ --title "$msg_error" \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612130244.uBD2iXwg070949>