I've put custom routes setup in my postup script through the ip ro add <some ip> dev tun0 etc, but i have to add delay at the start of it to make it work properly. So the problem is that iptools report that there is no such device as tun0 if i don't insert something like sleep 3 at the start of the script, which is ugly. I expect that postup script will be run after the interface is really UP.
Created attachment 372860 [details] openconnect.init.in-r2 Init script adds support for calling the postup script after the interface is up and an ip address is set.
Created attachment 372862 [details] openconnect-5.99-r1.ebuild
comitted in 5.99-r1