What's new

/jffs/scripts not executed at boot am I missing something

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

speedbump

Regular Contributor
I am running n66u with the 3.0.0.4.374.35_4-sdk5 build.

I added jffs and formatted it
created /jffs/scripts/services-start

with:
#!/bin/sh
echo "server=/netflix.com/208.122.23.22" >> /tmp/etc/dnsmasq.conf
echo "server=/netflix.com/208.122.23.23" >> /tmp/etc/dnsmasq.conf
killall dnsmasq
dnsmasq -c 1500 --log-async -n

made it executable

and if I manually run it "/jffs/scripts/services-start" it works
if I reboot the router the file is NOT auto executed.

am I missing something ?

Thanks
 
if I reboot the router the file is NOT auto executed. am I missing something?
It probably IS running. Add some delay by adding this
Code:
#!/bin/sh
sleep 10
 
There is an even simpler way to add to dnsmasq.conf:
Create /jffs/configs/dnsmasq.conf.add
and fill in:
Code:
address=/netflix.com/208.122.23.22
address=/netflix.com/208.122.23.23
No need to make it executable.
Then restart dnsmasq to make the rules effective without reboot
Code:
service restart_dnsmasq
 
Last edited:
There is an even simpler way to add to dnsmasq.conf:
Create /jffs/configs/dnsmasq.conf.add
and fill in:
Code:
address=/netflix.com/208.122.23.22
address=/netflix.com/208.122.23.23
No need to make it executable.
Then restart dnsmasq to make the rules effective without reboot
Code:
service restart_dnsmasq


I get 404 age not found ... when I go to netflix
 
Last edited:
Netflix needs more than the two IP's. Just tested it from Switzerland. If I add only the two IP Adresses it will partially timeout.
Where are you located?
 
Where did you get the IP's from?
 
Where did you get the IP's from?

I assumed those are DNS ip, so the ones that I am using are Smart DNS.

when I use them in the services-start script they work if I run the script manually, the only problem I am having with the services-start script is that it does not auto run on boot.
 
Those are Voxel Dot Net's Addresses in New York. Not sure this is working.
Are you using Netflix through a browser?
 
Those are Voxel Dot Net's Addresses in New York. Not sure this is working.
Are you using Netflix through a browser?

yes browser,

the Ip's I am using are actually smart dns
echo "server=/netflix.com/21.23.43.50" >> /tmp/etc/dnsmasq.conf
echo "server=/netflix.com/54.229.171.243" >> /tmp/etc/dnsmasq.conf
 
Use Firefox and install Extension (add-on)
Media Hint
 
that's not a good solution for me, as I need to have this working on multiple devices/computers.

The services-start script would be great if it would auto start.
 
that's not a good solution for me, as I need to have this working on multiple devices/computers.
I see.
Your script in the first post probably never worked for you as
server=/netflix.com/208.122.23.22 is an invalid descriptor on the router.
You need to use address=/netflix.com/208.122.23.22

Have you used Netflix with these IP's successfully? I.E. did your script work when you ran it manually as said in first post?
 
I see.
Your script in the first post probably never worked for you as
server=/netflix.com/208.122.23.22 is an invalid descriptor on the router.
You need to use address=/netflix.com/208.122.23.22

Have you used Netflix with these IP's successfully? I.E. did your script work when you ran it manually as said in first post?


when I wrote the initial post, I just copied the script from another post

my script is like this:

#!/bin/sh
sleep 10
echo "server=/netflix.com/21.23.43.50" >> /tmp/etc/dnsmasq.conf
echo "server=/netflix.com/54.229.171.243" >> /tmp/etc/dnsmasq.conf
killall dnsmasq
dnsmasq -c 1500 --log-async -n


when I created the dnsmasq.conf.add I used:

address=/netflix.com/208.122.23.22
address=/netflix.com/208.122.23.23
 
Yeah, it only works with the address= in the newer firmwares, as I understand it. If you use the dnsmasq.conf.add script and reboot the Router, clear Browser Cache and Windows DNS Cache does it work then? You may need to use different IP's from CDN though.
 

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top