Revert r309918 -- modern POSIX has deprecated -<#>/+<#> syntax
Special thanks to: jilles
This commit is contained in:
parent
2aa82aeacc
commit
a7cc56803c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=310038
@ -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>"
|
||||
|
Loading…
Reference in New Issue
Block a user