From 3c2e0c55b2ab0236405e84463a202b758163adee Mon Sep 17 00:00:00 2001 From: Aryeh Feigin <101218333+arfeigin@users.noreply.github.com> Date: Thu, 23 Feb 2023 02:08:45 +0200 Subject: [PATCH] Use new value of STATE_DB FAST_REBOOT entry (#1196) * Use new value of STATE_DB FAST_REBOOT entry * Rename FAST_REBOOT table --- syncd/scripts/syncd_init_common.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/syncd/scripts/syncd_init_common.sh b/syncd/scripts/syncd_init_common.sh index 4739ba06c..0906d5fb7 100644 --- a/syncd/scripts/syncd_init_common.sh +++ b/syncd/scripts/syncd_init_common.sh @@ -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'