Files
PFVCluster/archive/provisioning/Project-Includes/pi-detect.sh
T
2026-08-01 15:45:23 -05:00

13 lines
355 B
Bash

# shellcheck shell=bash disable=SC2148 # sourced function file (no shebang by design)
function pi-detect()
{
print_info Now running "${FUNCNAME[0]}"....
if [ -f /sys/firmware/devicetree/base/model ] ; then
export IS_RASPI="1"
fi
if [ ! -f /sys/firmware/devicetree/base/model ] ; then
export IS_RASPI="0"
fi
print_info Completed running "${FUNCNAME[0]}"
}