Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 481978 - net-misc/openconnect - openconnect.sh script doesn't really check conditions for subscripts like postup.sh
Summary: net-misc/openconnect - openconnect.sh script doesn't really check conditions ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matthew Schultz
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-21 15:00 UTC by Max Loparev
Modified: 2014-03-17 17:07 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
openconnect.init.in-r2 (openconnect.init.in-r2,3.19 KB, text/plain)
2014-03-17 16:19 UTC, Matthew Schultz
Details
openconnect-5.99-r1.ebuild (openconnect-5.99-r1.ebuild,4.81 KB, text/plain)
2014-03-17 16:19 UTC, Matthew Schultz
Details

Note You need to log in before you can comment on or make changes to this bug.
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