diff options
author | Christian Lamparter <chunkeey@googlemail.com> | 2016-09-29 19:55:33 +0200 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2016-10-04 11:50:48 +0200 |
commit | 5a8a986dd5808555567fd5791f05cf2ae504aa42 (patch) | |
tree | 3f84231e3c64b0e9190f3527edc8ca2f1a41ab9c /package/base-files/files/sbin/wifi | |
parent | d0f17fe68240f0f517267741fa76f64eb32f2195 (diff) | |
download | upstream-5a8a986dd5808555567fd5791f05cf2ae504aa42.tar.gz upstream-5a8a986dd5808555567fd5791f05cf2ae504aa42.tar.bz2 upstream-5a8a986dd5808555567fd5791f05cf2ae504aa42.zip |
base-files: remove non-working filter option for wifi detect
This patch removes the non-working wifi driver filter for
the wifi detection script.
I figured that rather than replacing ${2:-$DRIVERS} with
${1:-$DRIVERS}, it would be better to remove it. Nobody
needed it in the previous years.
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
Diffstat (limited to 'package/base-files/files/sbin/wifi')
-rwxr-xr-x | package/base-files/files/sbin/wifi | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/package/base-files/files/sbin/wifi b/package/base-files/files/sbin/wifi index 2476414337..6bd3544fcb 100755 --- a/package/base-files/files/sbin/wifi +++ b/package/base-files/files/sbin/wifi @@ -146,7 +146,7 @@ wifi_reload() { } wifi_detect() { - for driver in ${2:-$DRIVERS}; do ( + for driver in $DRIVERS; do ( if eval "type detect_$driver" 2>/dev/null >/dev/null; then eval "detect_$driver" || echo "$driver: Detect failed" >&2 else @@ -227,7 +227,7 @@ scan_wifi case "$1" in down) wifi_updown "disable" "$2";; - detect) wifi_detect "$2";; + detect) wifi_detect ;; status) ubus_wifi_cmd "status" "$2";; reload) wifi_reload "$2";; reload_legacy) wifi_reload_legacy "$2";; |