Last active
February 13, 2018 15:21
-
-
Save adujardin/6e36288682044ab6c931eb04a01bf07f to your computer and use it in GitHub Desktop.
NVIDIA Tegra version detection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
tegra_detection=$( | |
case "$(cat /sys/module/tegra_fuse/parameters/tegra_chip_id)" in | |
("64") echo "tegra_k1" ;; | |
("33") echo "tegra_x1" ;; | |
("24") echo "tegra_x2" ;; | |
(*) echo "unknown" ;; | |
esac) | |
echo "${tegra_detection}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment