diff --git a/board/recalbox/fsoverlay/etc/init.d/S06splash b/board/recalbox/fsoverlay/etc/init.d/S06splash index a7907a2fcfc59fc2a857036c1b0c93f4817946ab..a8d696a5eba46e9add4f3c8c371026b397a77c31 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 a7acc46653193f5fad80df1fca122d267540e262..e774d37cfafdecddc378be65662f1ba49e6e8690 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 +}