Skip to content

Commit c58d259

Browse files
authored
Use new value of STATE_DB FAST_REBOOT entry (#1196)
* Use new value of STATE_DB FAST_REBOOT entry * Rename FAST_REBOOT table
1 parent 3808e4c commit c58d259

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

syncd/scripts/syncd_init_common.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ case "$(cat /proc/cmdline)" in
5252
;;
5353
*SONIC_BOOT_TYPE=fast*|*fast-reboot*)
5454
# check that the key exists
55-
if [[ $(sonic-db-cli STATE_DB GET "FAST_REBOOT|system") == "1" ]]; then
55+
SYSTEM_FAST_REBOOT=`sonic-db-cli STATE_DB GET "FAST_RESTART_ENABLE_TABLE|system"`
56+
if [[ ${SYSTEM_FAST_REBOOT} == "enable" ]]; then
5657
FAST_REBOOT='yes'
5758
else
5859
FAST_REBOOT='no'

0 commit comments

Comments
 (0)