Commit d0eae460 authored by Omar Kallel's avatar Omar Kallel

Fix reboot command key

parent 7efea90d
Pipeline #1430 passed with stage
in 18 seconds
......@@ -109,7 +109,6 @@ case "$1" in
;;
reboot)
action="reboot"
commandKey=$2
;;
apply)
if [ "$2" = "notification" ]; then
......@@ -506,6 +505,7 @@ handle_action() {
if [ "$action" = "reboot" ]; then
sync
uci set cwmp.acs.ParameterKey=$commandKey
uci commit
reboot
fi
......@@ -537,6 +537,7 @@ handle_action() {
json_load "$CMD"
json_get_var command command
json_get_var action action
json_get_var arg arg
case "$command" in
set)
if [ "$action" = "notification" ]; then
......@@ -617,6 +618,7 @@ handle_action() {
;;
reboot)
action="reboot"
commandKey=$arg
;;
apply)
if [ "$action" = "notification" ]; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment