Timezone Script Doesn't Work

Kernel, Main, Utilities & Applications, Miscellaneous Devices.
galadriel
Posts: 2
Joined: Wed May 27, 2020 1:11 pm

Timezone Script Doesn't Work

Unread post 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 ;)
galadriel
Posts: 2
Joined: Wed May 27, 2020 1:11 pm

Re: Timezone Script Doesn't Work

Unread post by galadriel »

I don't understand, I just now reboot by miSTer, and miracle, the time is now correct...
You can close this topic ;)
bbond007
Top Contributor
Posts: 531
Joined: Tue May 26, 2020 5:06 am
Has thanked: 87 times
Been thanked: 211 times

Re: Timezone Script Doesn't Work

Unread post 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...
Post Reply