init script? - Last email today :)

Matthew Kitchin (public/usenet) mkitchin.public at gmail.com
Tue Nov 30 22:26:00 EST 2010


On 8/13/2010 4:10 AM, David Woodhouse wrote:
> On Thu, 2010-08-12 at 22:17 -0500, Matthew Kitchin (public/usenet) wrote:
>>    Does anyone have a sample init script? I could do a very simple one,
>> but I wanted to check and see if anyone had one that had been tested and
>> works well.
> I posted one at
> http://lists.infradead.org/pipermail/openconnect-devel/2010-August/000201.html that has some basic functionality -- like not reconnecting over and over again in a tight loop, and aborting when it gets an authentication failure (on the basis that it's never likely to work again in that case).
>
> It would be useful to tie something like this into distro initscripts so
> you can just do 'ifup vpn0'.... assuming you trust it with your
> password/certificate/whatever.
>
Very delayed response... I got sidetracked, but finally had a reason to 
replace my openwrt box at home. New Blu-ray player wasn't compatible 
with old openwrt version or old linksys hardware :)
I'm trying to finalize my init script for openwrt backfire. Here is an 
example:
https://forum.openwrt.org/viewtopic.php?id=11301
What would you recommend for the 'stop' portion of the script? I tried 
killall openconnect, but that didn't seem to shut it down very cleanly. 
Is there  a cleaner method?
Also, I'm far from a programmer, or else I would be able to figure this 
out myself. Does the initscript you linked above stay running and 
reconnect automatically on disconnects? Thanks again for the outstanding 
program!

-Matthew



More information about the openconnect-devel mailing list