From: dteske Date: Tue, 13 Dec 2016 22:31:49 +0000 (+0000) Subject: Revert r309918 -- modern POSIX has deprecated -<#>/+<#> syntax X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=afc7443a353e842299fd91fc1f53c5230edd5883;p=people%2Froyger%2Ffreebsd.git Revert r309918 -- modern POSIX has deprecated -<#>/+<#> syntax Special thanks to: jilles --- diff --git a/usr.sbin/bsdinstall/scripts/wlanconfig b/usr.sbin/bsdinstall/scripts/wlanconfig index b7b150bd75ff..130f1e06419a 100755 --- a/usr.sbin/bsdinstall/scripts/wlanconfig +++ b/usr.sbin/bsdinstall/scripts/wlanconfig @@ -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=""