Thread: PR1.1 Feedback?
View Single Post
rebhana's Avatar
Posts: 579 | Thanked: 471 times | Joined on Jan 2010 @ Austria
#217
Originally Posted by juaalto View Post
Assuming now that your problem is caused by the vpnc_0.5.8-0m5_armel.deb package installed before upgrade to PR1.1 over SSU. 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 (you need to connect to internet over VPN to install rootsh)
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:

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
7. In X Terminal enter 'chmod +x /etc/maemo-dhcp.d/60_vpnc'
8. Reboot the device
I haven't upgraded yet, so I would be interested in knowing whether de-installing vpnc before the upgrade to 1.1, and re-installing thereafter would solve this problem. Or would one have to add the above /etc/maemo-dhcp.d/60_vpnc anyway to make PR1.1 compatible with vpnc_0.5.8-0m5_armel.deb?

This package seems to be in need of a fix, but it also seems to me that this package is not take care of really by anybody (two weeks ago I filed a bug report on this package at garage.maemo.org, which did not produce any response). That's rather unfortunate as there seem to be quite a number of people depending on vpnc to connect to a Cisco concentrator at their work place.