Page 1 of 1

cifs_mount

Posted: Mon Jun 08, 2020 9:07 pm
by ded
I've been setting up my MiSTer today, and I've successfully gotten it connected to wi-fi, run the update script and everything seems to be working... Except I can't seem get cifs_mount.sh to work; I believe I've set the parameters correctly within the ini, but I get the follow error, for which I've been unable to find any help through searching Google:
/bin/bash^M bad interpreter: No such file or directory
Any possible solutions?

Re: cifs_mount

Posted: Tue Jun 09, 2020 12:04 am
by ExCyber
This looks like what I'd expect if you edited the file with a Windows text editor that saved DOS/Windows-style line endings (CRLF). Some Windows text editors can be convinced to save with Unix-style line endings (LF), but exactly how to do it varies by editor. Sometimes it's a file type selection in the "Save As..." dialog, for example.

Alternatively, the dos2unix utility is available in the MiSTer Linux system if you're set up for SSH and know your way around the command line.

Re: cifs_mount

Posted: Tue Jun 09, 2020 9:36 am
by ded
That was exactly it, thanks!