From 81031e9499ea038c8c09c560bc2a8f8bec8fd62f Mon Sep 17 00:00:00 2001 From: Charles N Wyble Date: Wed, 18 Jun 2025 11:21:25 -0500 Subject: [PATCH] pi detection --- newSrv.sh | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) 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