mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-23 22:47:03 +01:00
Introduce a variable to identify the Nvidia
based on a suggestion from @openoms
This commit is contained in:
parent
4b47a9eef6
commit
8f37c51b81
1 changed files with 2 additions and 1 deletions
|
@ -62,6 +62,7 @@ isDietPi=$(uname -n | grep -c 'DietPi')
|
|||
isRaspbian=$(cat /etc/os-release 2>/dev/null | grep -c 'Raspbian')
|
||||
isArmbian=$(cat /etc/os-release 2>/dev/null | grep -c 'Debian')
|
||||
isUbuntu=$(cat /etc/os-release 2>/dev/null | grep -c 'Ubuntu')
|
||||
isNvidia=$(uname -a | grep -c 'tegra')
|
||||
if [ ${isRaspbian} -gt 0 ]; then
|
||||
baseImage="raspbian"
|
||||
fi
|
||||
|
@ -149,7 +150,7 @@ if [ "${baseImage}" = "ubuntu" ] || [ "${baseImage}" = "armbian" ]; then
|
|||
fi
|
||||
|
||||
# special prepare when Nvidia Jetson Nano
|
||||
if [ "${baseImage}" = "ubuntu" ] && [ ${isAARCH64} -eq 1 ] ; then
|
||||
if [ ${isNvidia} -eq 1 ] ; then
|
||||
# disable GUI on boot
|
||||
sudo systemctl set-default multi-user.target
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue