[swss]: Exiting orchagent with unsupported HWSKU (#650)
Echo error message to stderr and exit orchagent.sh starting script
This commit is contained in:
parent
26f98559b0
commit
8adc490fe6
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user