I will change it and try it.If you use this, you have to have .sh then end of file.
Code:#!/bin/sh sh /jffs/scripts/malware-filter.sh
Thanks again!
I will change it and try it.If you use this, you have to have .sh then end of file.
Code:#!/bin/sh sh /jffs/scripts/malware-filter.sh
I got a response "Can't open /jffs/scripts/malware-filter.sh"I will change it and try it.
Thanks again!
I got it!If you use this, you have to have .sh then end of file.
Code:#!/bin/sh sh /jffs/scripts/malware-filter.sh
Glad you get it to work.I got it!
I just made a copy of malware-filter and added the .sh.
Sorry for my stupidity!
I still have a problem.Glad you get it to work.
I have firewall-start under /jffs.You have it under: /jffs/scripts/firewall-start
And enabled: Enable JFFS custom scripts and configs?
From command line do, and test again: dos2unix /jffs/scripts/firewall-startCode:#!/bin/sh sh /jffs/scripts/malware-filter.sh
yesI have firewall-start under /jffs.
Should it be in /jffs/scripts?
You have it under: /jffs/scripts/firewall-start
And enabled: Enable JFFS custom scripts and configs?
Ok! I moved it. I'll test it and let you know.
Not true.Beware that there is an Exit 0 in the cru script..
So if you call it from another script, say services-start , it will close THAT script too, unless you take precautions, like starting it with an sh...
YOU ARE RIGHT! I tried a test case and found out that the exit does not cause the termination of the caller.. I suspect if "source" or something else is used then it might kill the caller..Not true.
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!