/opt/retropie/configs/all/autostart.shOR\\spaceinvaders\configs\all\autostart.shRecommend edit in nano to keep execute perms on file.
zstatus=$? while true; do attract zstatus=$? echo $zstatus if [[ $zstatus -ne 0 ]]; then break; fi sleep 5 emulationstation zstatus=$? echo $zstatus if [[ $zstatus -ne 0 ]]; then break; fi sleep 5 done