From 1cac9fc2a316e215486fd05f7322c4b7e66fdfb2 Mon Sep 17 00:00:00 2001 From: Devin Teske Date: Mon, 12 Dec 2016 18:39:26 +0000 Subject: [PATCH] Add missing `-e' parameter to sed invocations --- usr.sbin/bsdinstall/scripts/wlanconfig | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/usr.sbin/bsdinstall/scripts/wlanconfig b/usr.sbin/bsdinstall/scripts/wlanconfig index 2664a758dd9..ab329f27193 100755 --- a/usr.sbin/bsdinstall/scripts/wlanconfig +++ b/usr.sbin/bsdinstall/scripts/wlanconfig @@ -52,7 +52,7 @@ country_set() iface_up=$( ifconfig -lu | grep -w $WLAN_IFACE ) [ "$iface_up" ] && ifconfig $WLAN_IFACE down error_str=$( ifconfig $WLAN_IFACE $ifconfig_args 2>&1 | - sed 's/ifconfig: //' ) + sed -e 's/ifconfig: //' ) if [ "$iface_up" ]; then # Restart wpa_supplicant(8) (should not fail). wpa_supplicant -B -i $WLAN_IFACE -c \ @@ -85,11 +85,11 @@ dialog_country_select() # # Parse available countries/regdomains # - input=$( ifconfig $WLAN_IFACE list countries | sed 's/DEBUG//gi' ) - regdomains=$( echo $input | sed 's/.*domains://' | tr ' ' '\n' | + input=$( ifconfig $WLAN_IFACE list countries | sed -e 's/DEBUG//gi' ) + regdomains=$( echo $input | sed -e 's/.*domains://' | tr ' ' '\n' | sort | tr '\n' ' ' ) - countries=$( echo $input | sed 's/Country codes://' | - sed 's/Regulatory.*//' | awk '{ + countries=$( echo $input | sed -e 's/Country codes://' | + sed -e 's/Regulatory.*//' | awk '{ for (i = 1; i <= NF; i++) { printf "%s", $i if (match($i, "[[:lower:]]"))