Page 1 of 1

Timezone Script Doesn't Work

Posted: Mon Apr 25, 2022 4:58 pm
by galadriel
Hi Everyone,

Since some days, Timezone script doesn't work properly. I get this message : "/tmp/script: /media/fat/scripts/timezone.sh: /bin/bash^M: bad interpreter: no such file or Directory". I don't have a RTC card, but my MiSTer is connected on my switch with an ethernet cable.
Can you help me ? Thank you in advance ;)

Re: Timezone Script Doesn't Work

Posted: Mon Apr 25, 2022 5:08 pm
by galadriel
I don't understand, I just now reboot by miSTer, and miracle, the time is now correct...
You can close this topic ;)

Re: Timezone Script Doesn't Work

Posted: Mon Apr 25, 2022 7:37 pm
by bbond007
Before closing topic...
Just FYI :

^M is the carriage return character and should not appear in a Unix script. DOS/Windows uses a carriage return(0x0A) + linefeed (0x0D) to terminate a line and and Unix simply uses a linefeed.

Anytime you see this it is most likely because the file has been edited or created on Windows in an editor that does properly deal with Unix style files.

Hope that helps...