pi detection

This commit is contained in:
2025-06-18 11:21:25 -05:00
parent 6a5a73d1b4
commit 81031e9499

View File

@ -8,6 +8,15 @@ set -o functrace
# Start actual script logic here... # Start actual script logic here...
function pi-detect{}
{
if [ -f /sys/firmware/devicetree/base/model ] ; then
export IS_RASPI="1"
fi
}
function global-configureAptRepos() function global-configureAptRepos()
@ -239,14 +248,14 @@ global-postPackageConfiguration
# Things todo on certain types of systems # Things todo on certain types of systems
################################################## ##################################################
###
# Proxmox servers
###
### ###
# Raspberry Pi # Raspberry Pi
### ###
pi-detect
if [ $IS_RASPI == 1 ] ; then
echo "Running on a Raspberry pi..."
fi
### ###
# Jetson nano # Jetson nano
### ###