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
parent 7cf6f99e75
commit 79de940a20

View File

@@ -11,6 +11,11 @@ SCRIPTPATH=$(dirname "${RP}")
# shellcheck source=/dev/null # shellcheck source=/dev/null
source "${SCRIPTPATH}/libjethubconfig.sh" 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 # Enable legacy sysfs gpio export. Will be disabled in future releases
ENABLESYSFS=${JETHUB_SYSFS_ENABLE:-true} ENABLESYSFS=${JETHUB_SYSFS_ENABLE:-true}