aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/sbin
diff options
context:
space:
mode:
authorBob Cantor <coxede6557@w3boats.com>2021-06-25 04:48:45 +1000
committerFelix Fietkau <nbd@nbd.name>2021-06-28 17:24:15 +0200
commite8b54296092118fbef75de796d57799cc6c7b927 (patch)
tree3716120e127450be1e9e3d477f103692cf7c22c5 /package/base-files/files/sbin
parentb82cc8071366b8e96904a1b52af503442069b20d (diff)
downloadupstream-e8b54296092118fbef75de796d57799cc6c7b927.tar.gz
upstream-e8b54296092118fbef75de796d57799cc6c7b927.tar.bz2
upstream-e8b54296092118fbef75de796d57799cc6c7b927.zip
base-files: wifi: tidy up the reconf code
commit 5edbd390d321532d9a697d6895a1a7c71c40bd5d rearranged the "wifi up" code. This commit tidies up the "wifi reconf" code so as to keep it aligned with the "wifi up" code. branches affected: trunk, 21.02 Signed-off-by: Bob Cantor <coxede6557@w3boats.com>
Diffstat (limited to 'package/base-files/files/sbin')
-rwxr-xr-xpackage/base-files/files/sbin/wifi3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/base-files/files/sbin/wifi b/package/base-files/files/sbin/wifi
index b2dde6f01c..6b9662fe93 100755
--- a/package/base-files/files/sbin/wifi
+++ b/package/base-files/files/sbin/wifi
@@ -135,6 +135,7 @@ wifi_updown() {
[ reconf = "$1" ] && {
scan_wifi
cmd=reconf
+ ubus call network reload
}
ubus_wifi_cmd "$cmd" "$2"
_wifi_updown "$@"
@@ -247,7 +248,7 @@ case "$1" in
reload) wifi_reload "$2";;
reload_legacy) wifi_reload_legacy "$2";;
--help|help) usage;;
- reconf) ubus call network reload; wifi_updown "reconf" "$2";;
+ reconf) wifi_updown "reconf" "$2";;
''|up) wifi_updown "enable" "$2";;
*) usage; exit 1;;
esac