The Following 10 Users Say Thank You to juaalto For This Useful Post: | ||
|
2010-01-14
, 10:48
|
|
Posts: 190 |
Thanked: 101 times |
Joined on Oct 2009
|
#42
|
|
2010-01-14
, 10:52
|
Posts: 150 |
Thanked: 91 times |
Joined on Dec 2009
@ Norway
|
#43
|
The Following 6 Users Say Thank You to hstende For This Useful Post: | ||
|
2010-01-14
, 10:53
|
Posts: 345 |
Thanked: 467 times |
Joined on Nov 2007
@ Germany
|
#44
|
Mine says:
Hope this helps,Code:#!/bin/sh # Place your script to /etc/maemo-dhcp.d directory so that it gets run. run-parts -a "$1" /etc/maemo-dhcp.d
Chris.
|
2010-01-14
, 10:57
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#45
|
|
2010-01-14
, 10:58
|
Posts: 6 |
Thanked: 0 times |
Joined on Dec 2009
|
#46
|
|
2010-01-14
, 10:58
|
Posts: 345 |
Thanked: 467 times |
Joined on Nov 2007
@ Germany
|
#47
|
You can either reflash with PR 1.1 and reinstall vpnc or you could try following manual steps. Please report if they work:
1. Install 'rootsh' package
2. Open X Terminal
3. Enter 'sudo gainroot'
4. Enter 'mv /etc/udhcpc/libicd_network_ipv4.script.dpkg-dist /etc/udhcpc/libicd_network_ipv4.script'
5. Create file '/etc/maemo-dhcp.d/60_vpnc'
6. Add the following code in /etc/maemo-dhcp.d/60_vpnc:
7. In X Terminal enter 'chmod +x /etc/maemo-dhcp.d/60_vpnc'Code:#!/bin/sh -e if route -n | grep -e "^0\.0\.0\.0" | grep -q tun0; then route -n | grep -e "^0\.0\.0\.0" | grep $interface | awk '{print $2}' > /tmp/vpnc_route ip=`cat /var/run/vpnc/defaultroute | cut -f3 -d' '` if [ -z $ip ]; then killall vpnc else if route -n | grep -e "^0\.0\.0\.0" | grep -q $ip; then route delete default $interface fi fi fi
8. Reboot the device
|
2010-01-14
, 10:59
|
Posts: 345 |
Thanked: 467 times |
Joined on Nov 2007
@ Germany
|
#48
|
|
2010-01-14
, 13:42
|
Posts: 22 |
Thanked: 5 times |
Joined on Dec 2009
@ Copenhagen/Denmark
|
#49
|
|
2010-01-14
, 14:00
|
|
Posts: 290 |
Thanked: 165 times |
Joined on Sep 2009
|
#50
|
Tags |
goodbye, sad sadavyk and messus |
|
1. Install 'rootsh' package
2. Open X Terminal
3. Enter 'sudo gainroot'
4. Enter 'mv /etc/udhcpc/libicd_network_ipv4.script.dpkg-dist /etc/udhcpc/libicd_network_ipv4.script'
5. Create file '/etc/maemo-dhcp.d/60_vpnc'
6. Add the following code in /etc/maemo-dhcp.d/60_vpnc:
8. Reboot the device
You need steps 5-7 if you want to continue using you old vpnc installation. Another way is to reinstall vpnc which reinstalls the hack in file '/etc/udhcpc/libicd_network_ipv4.script'
Last edited by juaalto; 2010-01-15 at 14:25.