diff --git a/syncd/scripts/syncd_init_common.sh b/syncd/scripts/syncd_init_common.sh index de83dfd07..70b91eb40 100644 --- a/syncd/scripts/syncd_init_common.sh +++ b/syncd/scripts/syncd_init_common.sh @@ -52,8 +52,8 @@ case "$(cat /proc/cmdline)" in ;; *SONIC_BOOT_TYPE=fast*|*fast-reboot*) # check that the key exists - SYSTEM_FAST_REBOOT=`sonic-db-cli STATE_DB GET "FAST_RESTART_ENABLE_TABLE|system"` - if [[ ${SYSTEM_FAST_REBOOT} == "enable" ]]; then + SYSTEM_FAST_REBOOT=`sonic-db-cli STATE_DB hget "FAST_RESTART_ENABLE_TABLE|system" enable` + if [[ x"${SYSTEM_FAST_REBOOT}" == x"true" ]]; then FAST_REBOOT='yes' else FAST_REBOOT='no'