Skip to content

Commit

Permalink
Merge pull request sonic-net#308 from vharish02/update_sai_profile_dir
Browse files Browse the repository at this point in the history
[src/sonic-sairedis] Change sai.profile directory
  • Loading branch information
yxieca committed Mar 20, 2018
2 parents e9ad721 + 4218d71 commit d356422
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion syncd/scripts/syncd_init_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ esac

config_syncd_bcm()
{
CMD_ARGS+=" -p $HWSKU_DIR/sai.profile"
if [ -f "/etc/sai.d/sai.profile" ]; then
CMD_ARGS+=" -p /etc/sai.d/sai.profile"
else
CMD_ARGS+=" -p $HWSKU_DIR/sai.profile"
fi

[ -e /dev/linux-bcm-knet ] || mknod /dev/linux-bcm-knet c 122 0
[ -e /dev/linux-user-bde ] || mknod /dev/linux-user-bde c 126 0
Expand Down

0 comments on commit d356422

Please sign in to comment.