summaryrefslogtreecommitdiff
path: root/packages/wpa-supplicant/files
diff options
context:
space:
mode:
authorMike Westerhof <mwester@dls.net>2008-12-26 17:38:57 -0600
committerMike Westerhof <mwester@dls.net>2008-12-26 17:38:57 -0600
commit4e038ba7d25f8e8170ceaee40e53289434fe4f59 (patch)
tree1e0ece2761acc44f0ec9f18ca7504f5caccda50e /packages/wpa-supplicant/files
parent3341d3a5d5db30831d1ca24117da511dfb6dab3b (diff)
wpa-supplicant: minor edits to helper scripts for busybox compatibility.
(replace long-form "--quiet" with short-form equivalent, and bump PR)
Diffstat (limited to 'packages/wpa-supplicant/files')
-rwxr-xr-xpackages/wpa-supplicant/files/functions.sh6
-rwxr-xr-xpackages/wpa-supplicant/files/ifupdown.sh2
2 files changed, 4 insertions, 4 deletions
diff --git a/packages/wpa-supplicant/files/functions.sh b/packages/wpa-supplicant/files/functions.sh
index 5132fbbca4..8ff0cb53a0 100755
--- a/packages/wpa-supplicant/files/functions.sh
+++ b/packages/wpa-supplicant/files/functions.sh
@@ -767,7 +767,7 @@ ifup () {
local WPA_MAP_STDIN
- WPA_MAP_STDIN=$(set | sed --quiet 's/^\(IF_WPA_MAP[0-9]*\)=.*/echo \$\1/p')
+ WPA_MAP_STDIN=$(set | sed -n 's/^\(IF_WPA_MAP[0-9]*\)=.*/echo \$\1/p')
if [ -n "$WPA_MAP_STDIN" ]; then
WPA_LOGICAL_IFACE=$(eval "$WPA_MAP_STDIN" | "$IF_WPA_MAPPING_SCRIPT" "$WPA_IFACE")
@@ -797,7 +797,7 @@ ifup () {
echo "ifup $WPA_IFACE=$WPA_LOGICAL_IFACE"
- if grep --quiet "^$WPA_IFACE=$WPA_IFACE" "$IFSTATE_FILE"; then
+ if grep -q "^$WPA_IFACE=$WPA_IFACE" "$IFSTATE_FILE"; then
# Force settings over the unconfigured "master" IFACE
/sbin/ifup --force "$WPA_IFACE=$WPA_LOGICAL_IFACE"
else
@@ -816,7 +816,7 @@ ifup () {
# Check IFACE state and ifdown as requested.
#
ifdown () {
- if grep --quiet "^$WPA_IFACE" "$IFSTATE_FILE"; then
+ if grep -q "^$WPA_IFACE" "$IFSTATE_FILE"; then
echo "ifdown $WPA_IFACE"
/sbin/ifdown "$WPA_IFACE"
else
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"