projects
/
openwrt
/
staging
/
dangole.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
930e702
)
base-files: use named variables in the wifi script
author
Andre Heider
<a.heider@gmail.com>
Wed, 2 Nov 2022 07:49:35 +0000
(08:49 +0100)
committer
Christian Marangi
<ansuelsmth@gmail.com>
Wed, 12 Apr 2023 17:49:22 +0000
(19:49 +0200)
Use the already present but unused $cmd and $dev variables instead of
positional parameters in ubus_wifi_cmd() to improve readability.
Signed-off-by: Andre Heider <a.heider@gmail.com>
package/base-files/files/sbin/wifi
patch
|
blob
|
history
diff --git
a/package/base-files/files/sbin/wifi
b/package/base-files/files/sbin/wifi
index 6a9dce7e8a9cca52fdd52b885b526133c0bd009e..29585389dfd67b4759d9c91ab38451f80b44c050 100755
(executable)
--- a/
package/base-files/files/sbin/wifi
+++ b/
package/base-files/files/sbin/wifi
@@
-17,8
+17,8
@@
ubus_wifi_cmd() {
local dev="$2"
json_init
- [ -n "$
2" ] && json_add_string device "$2
"
- ubus call network.wireless "$
1
" "$(json_dump)"
+ [ -n "$
dev" ] && json_add_string device "$dev
"
+ ubus call network.wireless "$
cmd
" "$(json_dump)"
}
find_net_config() {(