mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
sysmngr: rename restart option to reboot in upgrade
(cherry picked from commit cfc335aed8)
Co-authored-by: Vivek Kumar Dutta <vivek.dutta@iopsys.eu>
This commit is contained in:
parent
5c9a63c2a1
commit
06921165db
1 changed files with 4 additions and 4 deletions
|
|
@ -43,7 +43,7 @@ case "$1" in
|
||||||
json_add_boolean "keep_settings" 1
|
json_add_boolean "keep_settings" 1
|
||||||
json_add_boolean "keep_opconf" 1
|
json_add_boolean "keep_opconf" 1
|
||||||
json_add_string "config_scope" "String"
|
json_add_string "config_scope" "String"
|
||||||
json_add_boolean "restart" 1
|
json_add_boolean "reboot" 1
|
||||||
json_close_object
|
json_close_object
|
||||||
json_dump
|
json_dump
|
||||||
;;
|
;;
|
||||||
|
|
@ -207,7 +207,7 @@ case "$1" in
|
||||||
json_get_var keep_settings keep_settings
|
json_get_var keep_settings keep_settings
|
||||||
json_get_var keep_opconf keep_opconf
|
json_get_var keep_opconf keep_opconf
|
||||||
json_get_var config_scope config_scope
|
json_get_var config_scope config_scope
|
||||||
json_get_var restart restart
|
json_get_var reboot reboot
|
||||||
|
|
||||||
ret=0
|
ret=0
|
||||||
|
|
||||||
|
|
@ -231,7 +231,7 @@ case "$1" in
|
||||||
|
|
||||||
# Set the default value for keep_settings
|
# Set the default value for keep_settings
|
||||||
keep_settings=${keep_settings:-1}
|
keep_settings=${keep_settings:-1}
|
||||||
restart=${restart:-0}
|
reboot=${reboot:-0}
|
||||||
|
|
||||||
# This ubus call does not reboot the system at any one time.
|
# This ubus call does not reboot the system at any one time.
|
||||||
# Although, the newly upgraded bank is activated by default.
|
# Although, the newly upgraded bank is activated by default.
|
||||||
|
|
@ -239,7 +239,7 @@ case "$1" in
|
||||||
# "--no-activate" otherwise.
|
# "--no-activate" otherwise.
|
||||||
sysupgrade_flag=""
|
sysupgrade_flag=""
|
||||||
if [ "${auto_activate}" -eq 1 ]; then
|
if [ "${auto_activate}" -eq 1 ]; then
|
||||||
if [ "${restart}" -eq 0 ]; then
|
if [ "${reboot}" -eq 0 ]; then
|
||||||
sysupgrade_flag="--no-reboot"
|
sysupgrade_flag="--no-reboot"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue