svn commit: r309918 - head/usr.sbin/bsdinstall/scripts
Devin Teske
dteske at FreeBSD.org
Mon Dec 12 18:48:01 UTC 2016
Author: dteske
Date: Mon Dec 12 18:48:00 2016
New Revision: 309918
URL: https://svnweb.freebsd.org/changeset/base/309918
Log:
Remove unnecessary `-n' parameter to head/tail
Modified:
head/usr.sbin/bsdinstall/scripts/wlanconfig
Modified: head/usr.sbin/bsdinstall/scripts/wlanconfig
==============================================================================
--- head/usr.sbin/bsdinstall/scripts/wlanconfig Mon Dec 12 18:45:52 2016 (r309917)
+++ head/usr.sbin/bsdinstall/scripts/wlanconfig Mon Dec 12 18:48:00 2016 (r309918)
@@ -175,8 +175,8 @@ fi
#
if [ "$BSDINSTALL_CONFIGCURRENT" ]; then
# Get current country/regdomain for selected interface
- WLAN_IFACE=$( wpa_cli ifname | tail -n 1 )
- INPUT=$( ifconfig $WLAN_IFACE list regdomain | head -n 1 )
+ WLAN_IFACE=$( wpa_cli ifname | tail -1 )
+ INPUT=$( ifconfig $WLAN_IFACE list regdomain | head -1 )
DEF_REGDOMAIN=$( echo $INPUT | cut -w -f 2 )
DEF_COUNTRY=$( echo $INPUT | cut -w -f 4 )
[ "$DEF_REGDOMAIN" = 0 ] && DEF_REGDOMAIN="<not selected>"
More information about the svn-src-all
mailing list