http://wiki.openwrt.org/doc/techref/hotplug
2013/12/2 John Crispin <j...@phrozen.org> > On 02/12/13 08:02, Le Tran Dat wrote: > >> Hi Aleksandr, >> >> Many thanks for your help, I added my script to /etc/rc.local and it >> works like a cham. I haven't known about this script before. >> >> I don't know this too, I will check it later. >> >> or if you need change iptables everytime after some interface (ex >> WAN) going up, you can easily create script in /etc/hotplug.d/iface/ >> directory where add : >> [ ifup = "$ACTION" ] && [ "$INTERFACE" = "WAN" ] && { >> #here add yours iptables >> } >> >> >> I am using CoovaChilli's up.sh script to change iptables everytime >> TUN/TAP interface going up but it somehow does not work as expected if I >> do reboot. That's why I want to restart the CoovaChilli to apply up.sh >> iptales rule. Anyway, It is just a work-around solution, I have to check >> why up.sh does not work... >> >> Thanks, >> Dat >> >> > Hi, > > /etc/hotplug.d/net or /etc/hotplug.d/iface would be a more correct place > for the script > > John > > _______________________________________________ > openwrt-devel mailing list > openwrt-devel@lists.openwrt.org > https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel >
_______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel