Date: Tue, 13 Dec 2016 22:31:49 +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: r310038 - head/usr.sbin/bsdinstall/scripts Message-ID: <201612132231.uBDMVnHc061888@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dteske Date: Tue Dec 13 22:31:49 2016 New Revision: 310038 URL: https://svnweb.freebsd.org/changeset/base/310038 Log: Revert r309918 -- modern POSIX has deprecated -<#>/+<#> syntax Special thanks to: jilles Modified: head/usr.sbin/bsdinstall/scripts/wlanconfig Modified: head/usr.sbin/bsdinstall/scripts/wlanconfig ============================================================================== --- head/usr.sbin/bsdinstall/scripts/wlanconfig Tue Dec 13 22:30:48 2016 (r310037) +++ head/usr.sbin/bsdinstall/scripts/wlanconfig Tue Dec 13 22:31:49 2016 (r310038) @@ -185,8 +185,8 @@ fi # if [ "$BSDINSTALL_CONFIGCURRENT" ]; then # Get current country/regdomain for selected interface - WLAN_IFACE=$( wpa_cli ifname | tail -1 ) - INPUT=$( ifconfig "$WLAN_IFACE" list regdomain | head -1 ) + WLAN_IFACE=$( wpa_cli ifname | tail -n 1 ) + INPUT=$( ifconfig "$WLAN_IFACE" list regdomain | head -n 1 ) DEF_REGDOMAIN=$( echo "$INPUT" | cut -w -f 2 ) DEF_COUNTRY=$( echo "$INPUT" | cut -w -f 4 ) [ "$DEF_REGDOMAIN" = 0 ] && DEF_REGDOMAIN="<not selected>"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612132231.uBDMVnHc061888>