I wasn't able to edit the file with vi, as the file got corrupted every time, so I moved the files to the USB and cp -r them to the right place and now I get this.
admin@RT-N66U-B308:/jffs/scripts# /jffs/scripts/update-hosts.sh
-sh: /jffs/scripts/update-hosts.sh: not found...
admin@RT-N66U-B308:/# /jffs/scripts/update-hosts.sh
/jffs/scripts/update-hosts.sh: line 1: -: not found
Done.
admin@RT-N66U-B308:/# cd /jffs/scripts/
admin@RT-N66U-B308:/jffs/scripts# ls
post-mount services-start update-hosts.sh
admin@RT-N66U-B308:/jffs/scripts#
I read "The files are stored on a USB disk" as where the files I created should be.
Anyway, I moved the files to /jffs/ and did "chmod a+rx /jffs/scripts/*" restarted router and I wasn't able to connect to the internet. I created the files with Putty with text editor vi and just copy pasted the...
So I have been trying to get this to work for 6 hours now, and still nothing, ether nothing happens or I can't connect to the internet.
I have the files in "/tmp/mnt/TEST/jffs" ("sda1" does not exist, my USB name is "TEST") with "dnsmasq.conf.add" file in config folder and "update-hosts.sh"...