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

Error running usb-serial-drivers.sh #66

Open
crispy78 opened this issue Feb 27, 2023 · 2 comments
Open

Error running usb-serial-drivers.sh #66

crispy78 opened this issue Feb 27, 2023 · 2 comments

Comments

@crispy78
Copy link

When running usb-serial-drivers.sh I got an error mentioned below. Reason is that I've copy/pasted it from github and used notepad to create a file. The error was:

root@root:/lib/modules# /usr/local/etc/rc.d/usb-serial-drivers.sh start
-ash: /usr/local/etc/rc.d/usb-serial-drivers.sh: /bin/sh^M: bad interpreter: No such file or directory

I've solved it by running, where the "sed" command replaces spurious CR characters:

chown root:root /lib/modules/ch341.ko
chown root:root /lib/modules/cp210x.ko
chown root:root /lib/modules/pl2303.ko
chown root:root /lib/modules/rndis_host.ko
chown root:root /lib/modules/ti_usb_3410_5052.ko
sed -i -e 's/\r$//' /usr/local/etc/rc.d/usb-serial-drivers.sh

Hope this will help others.

@GravityRZ
Copy link

maybe if you first click the raw button and after that copy the script to a file you will not get those nasty characters.
just my 2 cents :-)

@crispy78
Copy link
Author

crispy78 commented Aug 6, 2023

It's probably a bit late, but I used the RAW-source. After a few Synology updates I'm downloading the zip-file extract the needed files to my NAS, copy it to the desired directory, CHOWN the files and run the .sh.

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