Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 481978

Summary: net-misc/openconnect - openconnect.sh script doesn't really check conditions for subscripts like postup.sh
Product: Gentoo Linux Reporter: Max Loparev <laplandersan>
Component: Current packagesAssignee: Matthew Schultz <mattsch>
Status: RESOLVED FIXED    
Severity: normal CC: hasufell, proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: openconnect.init.in-r2
openconnect-5.99-r1.ebuild

Description Max Loparev 2013-08-21 15:00:43 UTC
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.
Comment 1 Matthew Schultz 2014-03-17 16:19:00 UTC
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.
Comment 2 Matthew Schultz 2014-03-17 16:19:45 UTC
Created attachment 372862 [details]
openconnect-5.99-r1.ebuild
Comment 3 Julian Ospald 2014-03-17 17:07:11 UTC
comitted in 5.99-r1