I know I am missing something because I have this problem on AC68U (374.42) and N66U (35_4 sdk5). I am at a loss, any help will be appreciated.
The script will run if I manually run it but it does not auto start.
I have a copy of the file in windows, I ssh into the router, open vi, do a copy from text file and paste into the vi, save the file.
I have tried setting the sleep even to 20 and no banana.
then I do:
chmod a+rx /jffs/scripts/*
This is what I have:
admin@RT-AC68U-C378:/tmp/home/root# ls -l /jffs/scripts
-rwxrwxrwx 1 admin root 1117 May 11 20:39 services-start
file contents:
#!/bin/sh
sleep 5
echo "server=/netflix.com/21.23.43.50" >> /tmp/etc/dnsmasq.conf
echo "server=/netflix.com/54.229.171.243" >> /tmp/etc/dnsmasq.conf
echo "server=/pbs.org/21.23.43.50" >> /tmp/etc/dnsmasq.conf
echo "server=/pbs.org/54.229.171.243" >> /tmp/etc/dnsmasq.conf
echo "server=/pbskids.org/21.23.43.50" >> /tmp/etc/dnsmasq.conf
echo "server=/pbskids.org/54.229.171.243" >> /tmp/etc/dnsmasq.conf
echo "server=/bbc.co.uk/21.23.43.50" >> /tmp/etc/dnsmasq.conf
echo "server=/bbc.co.uk/54.229.171.243" >> /tmp/etc/dnsmasq.conf
echo "server=/4ondemand.com/21.23.43.50" >> /tmp/etc/dnsmasq.conf
echo "server=/4ondemand.com/54.229.171.243" >> /tmp/etc/dnsmasq.conf
echo "server=/itv.com/21.23.43.50" >> /tmp/etc/dnsmasq.conf
echo "server=/itv.com/54.229.171.243" >> /tmp/etc/dnsmasq.conf
echo "server=/youtube.com/21.23.43.50" >> /tmp/etc/dnsmasq.conf
echo "server=/youtube.com/54.229.171.243" >> /tmp/etc/dnsmasq.conf
echo "server=/hulu.com/21.23.43.50" >> /tmp/etc/dnsmasq.conf
echo "server=/hulu.com/54.229.171.243" >> /tmp/etc/dnsmasq.conf
killall dnsmasq
dnsmasq -c 1500 --log-async -n
The script will run if I manually run it but it does not auto start.
I have a copy of the file in windows, I ssh into the router, open vi, do a copy from text file and paste into the vi, save the file.
I have tried setting the sleep even to 20 and no banana.
then I do:
chmod a+rx /jffs/scripts/*
This is what I have:
admin@RT-AC68U-C378:/tmp/home/root# ls -l /jffs/scripts
-rwxrwxrwx 1 admin root 1117 May 11 20:39 services-start
file contents:
#!/bin/sh
sleep 5
echo "server=/netflix.com/21.23.43.50" >> /tmp/etc/dnsmasq.conf
echo "server=/netflix.com/54.229.171.243" >> /tmp/etc/dnsmasq.conf
echo "server=/pbs.org/21.23.43.50" >> /tmp/etc/dnsmasq.conf
echo "server=/pbs.org/54.229.171.243" >> /tmp/etc/dnsmasq.conf
echo "server=/pbskids.org/21.23.43.50" >> /tmp/etc/dnsmasq.conf
echo "server=/pbskids.org/54.229.171.243" >> /tmp/etc/dnsmasq.conf
echo "server=/bbc.co.uk/21.23.43.50" >> /tmp/etc/dnsmasq.conf
echo "server=/bbc.co.uk/54.229.171.243" >> /tmp/etc/dnsmasq.conf
echo "server=/4ondemand.com/21.23.43.50" >> /tmp/etc/dnsmasq.conf
echo "server=/4ondemand.com/54.229.171.243" >> /tmp/etc/dnsmasq.conf
echo "server=/itv.com/21.23.43.50" >> /tmp/etc/dnsmasq.conf
echo "server=/itv.com/54.229.171.243" >> /tmp/etc/dnsmasq.conf
echo "server=/youtube.com/21.23.43.50" >> /tmp/etc/dnsmasq.conf
echo "server=/youtube.com/54.229.171.243" >> /tmp/etc/dnsmasq.conf
echo "server=/hulu.com/21.23.43.50" >> /tmp/etc/dnsmasq.conf
echo "server=/hulu.com/54.229.171.243" >> /tmp/etc/dnsmasq.conf
killall dnsmasq
dnsmasq -c 1500 --log-async -n