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

runcommand-onstart.sh is not updated during install #16

Open
iamhammer opened this issue Jan 23, 2019 · 2 comments
Open

runcommand-onstart.sh is not updated during install #16

iamhammer opened this issue Jan 23, 2019 · 2 comments

Comments

@iamhammer
Copy link

I have the joystick-selection add-on installed, which inserts the following to runcommand-onstart.sh:

# the line below is needed to use the joystick selection by name method
bash "/opt/retropie/supplementary/joystick-selection/js-onstart.sh" "$@"

This seems to prevent rclone_script-install.sh from adding the call to rclone.
The install script menu reports CALL CREATED, but when I open the file, the call has not been added.

So, I deleted the runcommand-onstart.sh, ran the installer and this time it created the file containing:

#!/bin/bash
~/scripts/rclone_script/rclone_script.sh "down" "$1" "$2" "$3" "$4"

So creating the file is working, but the if statement for appending the file does not.
Wish I could be of more help, but I still need to work on my shell script skills.

@alexandershalin
Copy link

I have the same issue with other script that has been added to runcommand-onstart.sh before RCLONE_scrypt

@alexandershalin
Copy link

Seems that this issue is caused by wrong permissions set by some other script.

Workaround: open rclone_script-install.sh and add the following lines:

sudo chmod 777 /opt/retropie/configs/all/runcommand-onstart.sh # Permissions fix

right after # add call (line 801)

sudo chmod 777 /opt/retropie/configs/all/runcommand-onend.sh # Permissions fix

right after # add call (line 842)

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