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 Feb 23, 2023
1 parent 3808e4c commit c58d259
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 c58d259

Please sign in to comment.