summaryrefslogtreecommitdiff
path: root/packages/wpa-supplicant/files/ifupdown.sh
diff options
context:
space:
mode:
Diffstat (limited to 'packages/wpa-supplicant/files/ifupdown.sh')
-rwxr-xr-xpackages/wpa-supplicant/files/ifupdown.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/wpa-supplicant/files/ifupdown.sh b/packages/wpa-supplicant/files/ifupdown.sh
index 71486f7648..4a292ac948 100755
--- a/packages/wpa-supplicant/files/ifupdown.sh
+++ b/packages/wpa-supplicant/files/ifupdown.sh
@@ -78,7 +78,7 @@ if [ -n "$IF_WPA_CONF" ]; then
wpa_msg stderr "cannot read contents of $IF_WPA_CONF"
exit 1
fi
- WPA_SUP_CONF_CTRL_DIR=$(sed --quiet \
+ WPA_SUP_CONF_CTRL_DIR=$(sed -n \
's/[[:space:]]*#.*//g;s/[[:space:]]\+.*$//g;s/^\(ctrl_interface\|DIR\)=\(.*\)/\2/p' "$IF_WPA_CONF")
if [ -n "$WPA_SUP_CONF_CTRL_DIR" ]; then
WPA_CTRL_DIR="$WPA_SUP_CONF_CTRL_DIR"