[swss]: Exiting orchagent with unsupported HWSKU (#650)

Echo error message to stderr and exit orchagent.sh starting script
This commit is contained in:
Shuotian Cheng 2017-05-31 10:57:31 -07:00 committed by GitHub
parent 26f98559b0
commit 8adc490fe6

View File

@ -30,6 +30,9 @@ elif [ "$HWSKU" == "INGRASYS-S8900-54XC" ]; then
ORCHAGENT_ARGS+="-m $MAC_ADDRESS"
elif [ "$HWSKU" == "INGRASYS-S8900-64XC" ]; then
ORCHAGENT_ARGS+="-m $MAC_ADDRESS"
else
echo "Unsupported HWSKU:$HWSKU. Exiting..." > /dev/stderr
exit 1
fi
exec /usr/bin/orchagent ${ORCHAGENT_ARGS}