Closed Lokotito closed 3 years ago
Sorry was my bad, (1) the script must be edited/created in linux system or windows using notepad++ and use Unix (LF) format for the file. (2) the script don't need to have #!/bin/bash at the beging.
After this fixes I can run the custom script.
I test this great tool with a w9980 and I have success enabling telnet:
<Description val="Wireless Router`telnetd -p 1023 -l login`" />
But I can't run my script from script folder (/var/usbdisk/sda1/myscript/run.sh)
<Description val="Wireless Router`(sleep 10;/var/usbdisk/sda1/myscript/run.sh)>/dev/null &`" />
This is my script:
But after save MOD config (bin) to w9980 and reboot the device, services upnpd, dyndns, noipdns, cwmp still runing at start.
Also try deleting #!/bin/bash line from run.sh file but same result (upnpd, dyndns, noipdns, cwmp still runing after reboot) Any tip how can I run a script in the right way?
Thanks.