diff --git a/.gitignore b/.gitignore index ac9936c872..96833ce134 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,9 @@ # mkpkg temp mkpkg-temp +# options +/.libreelec + # private working directory /.work/ diff --git a/config/options b/config/options index 0372b4cf90..d19a90fb2e 100644 --- a/config/options +++ b/config/options @@ -86,7 +86,12 @@ VERBOSE="${VERBOSE:-yes}" # directory. CCACHE_CACHE_SIZE="10G" -# read options from $HOME if available +# read local persistent options from $ROOT if available +if [ -f "${ROOT}/.libreelec/options" ]; then + . "${ROOT}/.libreelec/options" +fi + +# read global persistent options from $HOME if available if [ -f "${HOME}/.libreelec/options" ]; then . "${HOME}/.libreelec/options" fi