1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-17 12:53:54 +02:00

mwan3: in ubus rpcd script fix shell local issue

To fix the shell local issue in the ubus mwan3 rpcd shell script, move
the switch case statment into a function.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
Florian Eckert 2018-04-12 10:27:00 +02:00
parent b570344ee5
commit 6f96e30829

View File

@ -74,6 +74,8 @@ get_mwan3_status() {
fi
}
main () {
case "$1" in
list)
json_init
@ -131,3 +133,6 @@ case "$1" in
esac
;;
esac
}
main "$@"