Browse Source
Merge pull request #50 from bavarianledger/patch-1
added "special prepare when Nvidia Jetson Nano"
master
bluecell296
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
7 additions and
0 deletions
-
build_sdcard.sh
|
@ -62,6 +62,7 @@ isDietPi=$(uname -n | grep -c 'DietPi') |
|
|
isRaspbian=$(cat /etc/os-release 2>/dev/null | grep -c 'Raspbian') |
|
|
isRaspbian=$(cat /etc/os-release 2>/dev/null | grep -c 'Raspbian') |
|
|
isArmbian=$(cat /etc/os-release 2>/dev/null | grep -c 'Debian') |
|
|
isArmbian=$(cat /etc/os-release 2>/dev/null | grep -c 'Debian') |
|
|
isUbuntu=$(cat /etc/os-release 2>/dev/null | grep -c 'Ubuntu') |
|
|
isUbuntu=$(cat /etc/os-release 2>/dev/null | grep -c 'Ubuntu') |
|
|
|
|
|
isNvidia=$(uname -a | grep -c 'tegra') |
|
|
if [ ${isRaspbian} -gt 0 ]; then |
|
|
if [ ${isRaspbian} -gt 0 ]; then |
|
|
baseImage="raspbian" |
|
|
baseImage="raspbian" |
|
|
fi |
|
|
fi |
|
@ -148,6 +149,12 @@ if [ "${baseImage}" = "ubuntu" ] || [ "${baseImage}" = "armbian" ]; then |
|
|
sudo adduser pi sudo |
|
|
sudo adduser pi sudo |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
# special prepare when Nvidia Jetson Nano |
|
|
|
|
|
if [ ${isNvidia} -eq 1 ] ; then |
|
|
|
|
|
# disable GUI on boot |
|
|
|
|
|
sudo systemctl set-default multi-user.target |
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
echo "" |
|
|
echo "" |
|
|
echo "*** CONFIG ***" |
|
|
echo "*** CONFIG ***" |
|
|
# based on https://github.com/Stadicus/guides/blob/master/raspibolt/raspibolt_20_pi.md#raspi-config |
|
|
# based on https://github.com/Stadicus/guides/blob/master/raspibolt/raspibolt_20_pi.md#raspi-config |
|
|