From a0dac9453833fd202ec7568e0a482eafb2c373be Mon Sep 17 00:00:00 2001 From: digitalLumberjack Date: Sun, 21 Dec 2025 13:35:26 +0100 Subject: [PATCH] feat(system): hide splash screen when autoboot is active --- board/recalbox/fsoverlay/etc/init.d/S06splash | 10 ---------- .../fsoverlay/recalbox/scripts/recalbox-utils.sh | 11 +++++++++++ 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/board/recalbox/fsoverlay/etc/init.d/S06splash b/board/recalbox/fsoverlay/etc/init.d/S06splash index a7907a2fcf..a8d696a5eb 100755 --- a/board/recalbox/fsoverlay/etc/init.d/S06splash +++ b/board/recalbox/fsoverlay/etc/init.d/S06splash @@ -168,16 +168,6 @@ playVideo() { fi } -autoRunEnabled() { - autorun="$($systemsetting -command load -key autorun.enabled -source /boot/recalbox-backup.conf)" - uuid="$($systemsetting -command load -key autorun.uuid -source /boot/recalbox-backup.conf)" - path="$($systemsetting -command load -key autorun.path -source /boot/recalbox-backup.conf)" - if [[ "$autorun" == "1" && ! -z "$uuid" && ! -z "$path" ]]; then - return 0 - fi - return 1 -} - shouldPlayBootVideo() { splashEnabled="$($systemsetting -command load -key system.splash.enabled -source /boot/recalbox-backup.conf)" if [[ "$splashEnabled" == "0" ]]; then return 1; fi diff --git a/board/recalbox/fsoverlay/recalbox/scripts/recalbox-utils.sh b/board/recalbox/fsoverlay/recalbox/scripts/recalbox-utils.sh index a7acc46653..e774d37cfa 100644 --- a/board/recalbox/fsoverlay/recalbox/scripts/recalbox-utils.sh +++ b/board/recalbox/fsoverlay/recalbox/scripts/recalbox-utils.sh @@ -339,3 +339,14 @@ function getCurrentCrtDriDevice() { done return 1 } + +autoRunEnabled() { + local systemsetting="recalbox_settings" + autorun="$($systemsetting -command load -key autorun.enabled -source /boot/recalbox-backup.conf -default 1)" + uuid="$($systemsetting -command load -key autorun.uuid -source /boot/recalbox-backup.conf)" + path="$($systemsetting -command load -key autorun.path -source /boot/recalbox-backup.conf)" + if [[ "$autorun" == "1" && ! -z "$uuid" && ! -z "$path" ]]; then + return 0 + fi + return 1 +} -- GitLab