From bda09111d54afab928f234a05abafdb2e6200b2f Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Fri, 30 Jan 2026 13:17:16 +0100 Subject: [PATCH] Integrate bashio-standalone.sh into startup script Add sourcing of bashio-standalone.sh and update scripts. --- .templates/00-banner.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.templates/00-banner.sh b/.templates/00-banner.sh index 2bf4aa8fb..f452b81e6 100755 --- a/.templates/00-banner.sh +++ b/.templates/00-banner.sh @@ -12,6 +12,13 @@ if ! bashio::supervisor.ping 2>/dev/null; then bashio::log.blue "Version : ${BUILD_VERSION:-1.0}" bashio::log.blue "Config source: ENV + /data/options.json" bashio::log.blue '-----------------------------------------------------------' + source /usr/local/lib/bashio-standalone.sh + cp -rf /usr/local/lib/bashio-standalone.sh /usr/bin/bashio + grep -rlZ "^#!.*bashio" /etc | + while IFS= read -r -d '' f; do + grep -qF "source /usr/local/lib/bashio-standalone.sh" "$f" && continue + sed -i '1a source /usr/local/lib/bashio-standalone.sh' "$f" + done else bashio::log.blue '-----------------------------------------------------------' bashio::log.blue " Add-on: $(bashio::addon.name)"