#!/bin/bash if command -v nvidia-smi &> /dev/null && nvidia-smi -L; then exit 0 else exit 1 fi