Hi Dat,
Why you cannot add yours script to run in /etc/rc.local? 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
}
Regards,
Aleksandr
2013/12/2 Le Tran Dat <[email protected]>
> Hi all,
>
> I am trying to run a script after the S99sysctl. I tried to use START=100
> but it does not work.
>
> I don't want to extent the sysctl to call my script.
> for example:
> cat " /etc/init.d/myscript.sh start" >> /etc/init.d/sysctl
>
> I want to do so because my application needs to change iptables
> configuration after rebooting.
>
> Thanks
> Dat
>
> _______________________________________________
> openwrt-devel mailing list
> [email protected]
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>
>
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel