[solved] Night LED timer for wifi router for OpenWrt

Finally I found reason for this error of " can't find cd to directory..." coming when executing script over ssh and now I can execute scripts over ssh to continue forward to solve LED timing feature.
Look here in these 2 photos :

Script created in Windows Notepad & viewed in Windows Notepad :
Screenshot 2024-01-03 231357

Script created in Windows Notepad & viewed in Linux Vim :

I then edited the script in Linux Vim by omitting " ^M " from end of each line, saved it and then it successfuly executed over ssh.

So, remember this note for future newbies, Windows Notepad disrupts formatting of scripts and appends unwanted characters

I am trying the scripts and updating any coming errors soon

1 Like