diff --git a/.gitignore b/.gitignore index ac9936c8728..96833ce1343 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 2bebb8d4cc6..ca105cf0f59 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