New problem after setting up with new Raspian Stretch for background music?
-
I am using a RP3B with the newest retropie-4.4-rpi2_rpi3.img.
I used the mpg123 method originally. I have edited all of the files correctly.My Autostart.sh reads:
while pgrep omxplayer >/dev/null; do sleep 1; done
(sleep 10; mpg123 -Z /home/pi/RetroPie/roms/music/*.mp3 >/dev/null 2>&1) &
emulationstation #autoMy runcommand-onend reads:
mpg123 -Z /home/pi/RetroPie/roms/music/*.mp3 >/dev/null 2>&1 &My runcommand-onstart reads:
pkill mpg123My music folder is in /home/pi/RetroPie/roms/music
When I reboot the system it is telling me:
/opt/retropie/configs/all/autostart.sh: line 4: syntax error: unexpected end of filewhat am I doing wrong?
-
@Hankola said in New problem after setting up with new Raspian Stretch for background music?:
/opt/retropie/configs/all/autostart.sh: line 4: syntax error: unexpected end of file
There's an error on line 4 on your
autostart.sh
start-up script. How did you edit the file ? -
I dragged my old file from my previous pi set up. I copied file over the network connection.
-
@Hankola Can you upload the file's contents on pastebin.com ? Make sure you open it with an editor that understands Unix line-endings (Notepad++).
-
@mitu I haven't ever done this; I am not very good at this stuff; just enough to get by. Do I create an account for this and then it gives me a nice copy for you to see?
-
@Hankola There's no account needed on pastebin.com. Open the page and paste the contents of the file, submit it and then copy the browser's URL and paste it here.
-
-
@Hankola Looks fine to me. Did you install
mpg123
on your new system ? Runsudo apt-get install mpg123
and see if your music comes back.
-
@mitu it's installed. So, on start up it pushes me out of ES and gives me the /opt/retropie/configs/all/autostart.sh:line4:systax error: unexpected end of file
If I type in the emulationstation at this point; it of course loads and then gives me no music, but it does bring stuff up. Then once I exit a game it gives me music after I come out. So I know the problem is somewhere in the autostart.sh ; but for the life of me I cannot find it.
-
@mitu can I simply delete the autostart.sh file, reboot, retype? I think something in the file is wonky.
-
@Hankola Sure, remove it, then create it again with the lines you posted. Make sure you make it executable afterwards
chmod +x /opt/retropie/configs/all/autostart.sh
-
Ok, lesson learned. Copying stuff can lead to compounding errors. Thank you @mitu for the guidance!
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.