13 lines
355 B
Bash
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]}"
|
|
} |