1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

Added condition which checks if Infiniband cards are present

This commit is contained in:
Dennis Potter 2018-07-25 18:46:33 +02:00
parent 50655d5d88
commit d4fc842900

View file

@ -23,8 +23,14 @@
##################################################################################
# Check if user is superuser. SU is used for namespace
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
if [[ "$EUID" -ne 0 ]]; then
echo "Please run as root"
exit 99
fi
# Check if Infiniband card is present
if [[ $(lspci | grep Infiniband) == 0 ]]; then
echo "Found no Infiniband cards in system"
exit 99
fi