diff options
author | Mike Westerhof <mwester@dls.net> | 2008-12-26 17:38:57 -0600 |
---|---|---|
committer | Mike Westerhof <mwester@dls.net> | 2008-12-26 17:38:57 -0600 |
commit | 4e038ba7d25f8e8170ceaee40e53289434fe4f59 (patch) | |
tree | 1e0ece2761acc44f0ec9f18ca7504f5caccda50e /packages/wpa-supplicant/files/functions.sh | |
parent | 3341d3a5d5db30831d1ca24117da511dfb6dab3b (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/functions.sh')
-rwxr-xr-x | packages/wpa-supplicant/files/functions.sh | 6 |
1 files changed, 3 insertions, 3 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 |