Reply
Thread Tools
Posts: 28 | Thanked: 13 times | Joined on Oct 2008 @ DK
#1
Hi guys
on my university we have 2 wireless networks
on PEAP that I cannot get to work with maemo

the other is unprotected but requires a vpn connection
I Can connect to the vpn connection using vpnc (GUI or commandline or using Connection Handler)
After 5 minutes the connection stops working, and I need to run vpnc-disconnect
vpnc-connect

I want to set up my Connection handler to launch a script to do so, I haven't coded in bash before, so this is partially a guess:
Code:
#!/bin/bash
sudo gainroot
while SOMETHING 
do	vpnc-connect
	sleep 300
	vpnc-disconnect
	sleep 3
done
I don't know if it is necessary to run gainroot, as connection handler can run as root. and also, I dont know what to put in the while statement. I'm thinking of making it dependent of the connected SSID

Best Regards Jakob
 
Posts: 3,841 | Thanked: 1,079 times | Joined on Nov 2006
#2
Will it always disconnect after 5 minutes, or would it be enough to be active on the link to keep it open? Because if the latter then you could get away with a simpler script (e.g. 'ping -i 180 some-host')
__________________
N800/OS2007|N900/Maemo5
-- Metalayer-crawler delenda est.
-- Current state: Fed up with everything MeeGo.

Last edited by TA-t3; 2009-10-28 at 17:01.
 
Posts: 28 | Thanked: 13 times | Joined on Oct 2008 @ DK
#3
I am not sure if that will work, but it is worth a try
edit: it did not work

sometimes it just stops loading sites while browsing, disconnects me from Gizmo/online radio.
when I have reconnected to the vnc, and reaload whatever I am doing, it is working again

Last edited by Jakob; 2009-10-28 at 17:24.
 
Reply


 
Forum Jump


All times are GMT. The time now is 01:49.