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

How to add custom script to emuelec? #21

Closed
farhanito opened this issue May 9, 2019 · 6 comments
Closed

How to add custom script to emuelec? #21

farhanito opened this issue May 9, 2019 · 6 comments

Comments

@farhanito
Copy link

Is it possible to add custom script to "RetroPie collection" tab?

@shantigilbert
Copy link
Collaborator

On the standalone yes, I am not sure on the add-on

But you can see the path in es_systems.cfg is "/emuelec/scripts/modules"
So just drop whatever .sh file you want there and it should work.

@farhanito
Copy link
Author

Thanks.

Yes, I am using the standalone.
The script shows up, but not working.

Here's what I am trying to do..
https://discourse.coreelec.org/t/sx05re-retro-emulation-kodi-addon-for-coreelec-released-for-testing/3203/433?u=farhanito

Script works as expected when executed from SSH.

@shantigilbert
Copy link
Collaborator

shantigilbert commented May 9, 2019

What happens when you select it in ES?
Is there any info on /storage/.emulationstation/es_log.txt

what happens if you use this script instead?

#!/bin/bash

source /emuelec/scripts/env.sh
source "$scriptdir/scriptmodules/supplementary/esthemes.sh"
rp_registerAllModules

joy2keyStart

mount -o rw,remount /flash
mv /flash/boot.ini /flash/boot.ini.emu
sync
read -n 1 -s -r -p "Press any key to reboot"
reboot

@farhanito
Copy link
Author

Ah, sorry.. It was Permission issue.

And your script is perfect.

Thanks again.

@shantigilbert
Copy link
Collaborator

shantigilbert commented May 9, 2019

Also, just to be safe, you might want to add a "sync" command before rebooting. (I updated the example script)

@shantigilbert
Copy link
Collaborator

Custom scripts should now go into "/emuelec/scripts/custom_scripts/"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants