Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Startup and checkoff scripts #1336

Merged
merged 1 commit into from
Jan 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
17 changes: 17 additions & 0 deletions static/build/.tmp_update/runtime.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,15 @@ main() {

rm -rf /tmp/is_booting

#EmuDeck - Startup scripts
mkdir -p "$sysdir/startup"
mkdir -p "$sysdir/checkoff"
startup_scripts=$(find "$sysdir/startup" -type f -name "*.sh")

for startup_script in $startup_scripts; do
sh "$startup_script"
done

# Auto launch
if [ ! -f $sysdir/config/.noAutoStart ]; then
state_change check_game
Expand Down Expand Up @@ -452,6 +461,14 @@ launch_switcher() {

check_off_order() {
if [ -f /tmp/.offOrder ]; then

#EmuDeck - CheckOff scripts
check_off_scripts=$(find "$sysdir/checkoff" -type f -name "*.sh")

for check_off_script in $check_off_scripts; do
sh "$check_off_script"
done

bootScreen "$1" &
sleep 1 # Allow the bootScreen to be displayed
shutdown
Expand Down