Skip to content

Commit

Permalink
Use new value of STATE_DB FAST_REBOOT entry (#1196)
Browse files Browse the repository at this point in the history
* Use new value of STATE_DB FAST_REBOOT entry

* Rename FAST_REBOOT table
  • Loading branch information
arfeigin authored and yxieca committed Mar 1, 2023
1 parent fe7756f commit 3c2e0c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion syncd/scripts/syncd_init_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ case "$(cat /proc/cmdline)" in
;;
*SONIC_BOOT_TYPE=fast*|*fast-reboot*)
# check that the key exists
if [[ $(sonic-db-cli STATE_DB GET "FAST_REBOOT|system") == "1" ]]; then
SYSTEM_FAST_REBOOT=`sonic-db-cli STATE_DB GET "FAST_RESTART_ENABLE_TABLE|system"`
if [[ ${SYSTEM_FAST_REBOOT} == "enable" ]]; then
FAST_REBOOT='yes'
else
FAST_REBOOT='no'
Expand Down

0 comments on commit 3c2e0c5

Please sign in to comment.