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:
parent
50655d5d88
commit
d4fc842900
1 changed files with 8 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue