I am running 384.8_2 on my ac86u. I would like to have a jffs script update the /tmp/etc/ipsec.conf file and call ipsec restart so it takes effect. My JFFS is on and I tried putting commands doing the conf update and restart in firewall-start and in services-start. But I think the IPSec VPN server starts after either one of these scripts run. What would be the best place to accomplish this? I am afraid to hang the router if I start putting sleep statements to delay the ipsec restart until after the IPSec VPN server comes up. It works of course if I manually log into the router via ssh and do the update & restart from the SSH command line.
Thanks!
Thanks!