JetHome: Update bsp: fix jethub-init to support /etc/defaults

This commit is contained in:
Viacheslav Bocharov 2024-07-19 13:57:37 +03:00 committed by August
parent ebf4c7d895
commit 15b609f5bb

View File

@ -11,6 +11,11 @@ SCRIPTPATH=$(dirname "${RP}")
# shellcheck source=/dev/null
source "${SCRIPTPATH}/libjethubconfig.sh"
# Include jethub-init defaults if available
if [ -f /etc/default/jethub ] ; then
. /etc/default/jethub
fi
# Enable legacy sysfs gpio export. Will be disabled in future releases
ENABLESYSFS=${JETHUB_SYSFS_ENABLE:-true}