Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
Made nvidia.ko check more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
chris committed Oct 1, 2022
1 parent c2e26d5 commit 3b3366e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build/linux/start.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash

NV_VER=$(modinfo /usr/lib/modules/$(uname -r)/updates/dkms/nvidia.ko | grep ^version |awk '{print $2}'|awk -F '.' '{print $1}')
NV_LIB=$(locate nvidia.ko |grep $(uname -r) |grep dkms | head -1)
NV_VER=$(modinfo $NV_LIB | grep ^version |awk '{print $2}'|awk -F '.' '{print $1}')

DATA_FOLDER=$(pwd)/data/
declare CAM0 CAM1 CAM2 CAM3
Expand Down

0 comments on commit 3b3366e

Please sign in to comment.