pi detection
This commit is contained in:
19
newSrv.sh
19
newSrv.sh
@ -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
|
||||||
###
|
###
|
Reference in New Issue
Block a user