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