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>
This commit is contained in:
parent
d0f17fe682
commit
5a8a986dd5
1 changed files with 2 additions and 2 deletions
|
@ -146,7 +146,7 @@ wifi_reload() {
|
||||||
}
|
}
|
||||||
|
|
||||||
wifi_detect() {
|
wifi_detect() {
|
||||||
for driver in ${2:-$DRIVERS}; do (
|
for driver in $DRIVERS; do (
|
||||||
if eval "type detect_$driver" 2>/dev/null >/dev/null; then
|
if eval "type detect_$driver" 2>/dev/null >/dev/null; then
|
||||||
eval "detect_$driver" || echo "$driver: Detect failed" >&2
|
eval "detect_$driver" || echo "$driver: Detect failed" >&2
|
||||||
else
|
else
|
||||||
|
@ -227,7 +227,7 @@ scan_wifi
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
down) wifi_updown "disable" "$2";;
|
down) wifi_updown "disable" "$2";;
|
||||||
detect) wifi_detect "$2";;
|
detect) wifi_detect ;;
|
||||||
status) ubus_wifi_cmd "status" "$2";;
|
status) ubus_wifi_cmd "status" "$2";;
|
||||||
reload) wifi_reload "$2";;
|
reload) wifi_reload "$2";;
|
||||||
reload_legacy) wifi_reload_legacy "$2";;
|
reload_legacy) wifi_reload_legacy "$2";;
|
||||||
|
|
Loading…
Reference in a new issue