Skip to content

Commit

Permalink
Disable Fast-Reboot start if uptime is greater than 3 minutes (#534)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-shirshov authored and yxieca committed Nov 18, 2019
1 parent 627e6bc commit 4b11836
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syncd/scripts/syncd_init_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ case "$(cat /proc/cmdline)" in
fi
;;
*SONIC_BOOT_TYPE=fast*|*fast-reboot*)
FAST_REBOOT='yes'
FAST_REBOOT=$(awk '{ if ($1 <= 180) print "yes"; else print "no" }' /proc/uptime)
;;
*)
FAST_REBOOT='no'
Expand Down

0 comments on commit 4b11836

Please sign in to comment.