Skip to content

Commit

Permalink
Enable FastReboot if we have key "FAST_REBOOT|system" in State db (so…
Browse files Browse the repository at this point in the history
…nic-net#529)

* Enable FastReboot if we have key FAST_REBOOT|system in State db
  • Loading branch information
pavel-shirshov authored Nov 12, 2019
1 parent 1aa5ebf commit 2bdbd47
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion syncd/scripts/syncd_init_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,12 @@ case "$(cat /proc/cmdline)" in
fi
;;
*SONIC_BOOT_TYPE=fast*|*fast-reboot*)
FAST_REBOOT='yes'
# check that the key exists
if [[ $(redis-cli -n 6 GET "FAST_REBOOT|system") == "1" ]]; then
FAST_REBOOT='yes'
else
FAST_REBOOT='no'
fi
;;
*)
FAST_REBOOT='no'
Expand Down

0 comments on commit 2bdbd47

Please sign in to comment.