Files
FetchApply/Project-Includes/pi-detect.sh
2025-06-30 13:30:35 -05:00

13 lines
248 B
Bash

function pi-detect()
{
echo Now running "$FUNCNAME"....
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
echo Completed running "$FUNCNAME"
}