Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions ubuntu24.04/nvidia-driver
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,10 @@ _ensure_nvlink5_prerequisites() (

# Check if mellanox devices are present
_mellanox_devices_present() {
devices_found=0
for dev in /sys/bus/pci/devices/*; do
read vendor < $dev/vendor
read vendor < "$dev/vendor"
if [ "$vendor" = "0x15b3" ]; then
echo "Mellanox device found at $(basename $dev)"
echo "Mellanox device found at $(basename "$dev")"
return 0
fi
done
Expand Down