Skip to content

Commit

Permalink
Add support of fast-reboot option (sonic-net#172)
Browse files Browse the repository at this point in the history
* Add support of fast-reboot option
  • Loading branch information
pavel-shirshov authored Mar 31, 2017
1 parent 81c1987 commit e28e4c0
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions debian/syncd.init
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,26 @@ start_cavium()
export XP_ROOT=/usr/bin/
}

case "$(cat /proc/cmdline)" in
*fast-reboot*)
FAST_REBOOT='yes'
;;
*)
FAST_REBOOT='no'
;;
esac

case "$1" in
start)
eval $(parse_yaml /etc/sonic/sonic_version.yml "sonic_")

if [ $sonic_asic_type == "broadcom" ]; then
start_bcm
DAEMON_ARGS+=" -p $HWSKU_DIR/sai.profile "
if [ $FAST_REBOOT == "yes" ];
then
DAEMON_ARGS+=" -t fast "
fi
elif [ $sonic_asic_type == "mellanox" ]; then
start_mlnx
DAEMON_ARGS+=" -p /tmp/sai.profile "
Expand Down

0 comments on commit e28e4c0

Please sign in to comment.