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>
This commit is contained in:
parent
b82cc80713
commit
e8b5429609
@ -135,6 +135,7 @@ wifi_updown() {
|
|||||||
[ reconf = "$1" ] && {
|
[ reconf = "$1" ] && {
|
||||||
scan_wifi
|
scan_wifi
|
||||||
cmd=reconf
|
cmd=reconf
|
||||||
|
ubus call network reload
|
||||||
}
|
}
|
||||||
ubus_wifi_cmd "$cmd" "$2"
|
ubus_wifi_cmd "$cmd" "$2"
|
||||||
_wifi_updown "$@"
|
_wifi_updown "$@"
|
||||||
@ -247,7 +248,7 @@ case "$1" in
|
|||||||
reload) wifi_reload "$2";;
|
reload) wifi_reload "$2";;
|
||||||
reload_legacy) wifi_reload_legacy "$2";;
|
reload_legacy) wifi_reload_legacy "$2";;
|
||||||
--help|help) usage;;
|
--help|help) usage;;
|
||||||
reconf) ubus call network reload; wifi_updown "reconf" "$2";;
|
reconf) wifi_updown "reconf" "$2";;
|
||||||
''|up) wifi_updown "enable" "$2";;
|
''|up) wifi_updown "enable" "$2";;
|
||||||
*) usage; exit 1;;
|
*) usage; exit 1;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user