It's actually the vpnc-script which is failing:
+ '[' connect = connect ']'
+ ip link set dev oc-6352-tun0 up mtu 1434
Error: Device for nexthop is not up.
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
# For a real one, see http://www.infradead.org/openconnect/vpnc-script.html
if [ "$reason" = "connect" ]; then
- ip link set dev "$TUNDEV" up mtu "$INTERNAL_IP4_MTU"
+ ip link show "$TUNDEV"
+ ip link set dev "$TUNDEV" up
+ ip link set dev "$TUNDEV" mtu "$INTERNAL_IP4_MTU"
ip addr add "$INTERNAL_IP4_ADDRESS/32" peer "$INTERNAL_IP4_ADDRESS" dev "$TUNDEV"
ip -6 addr add $INTERNAL_IP6_NETMASK dev $TUNDEV
rm -f ${DISCONNECT_FILE}
. `dirname $0`/common.sh
+set -x
+
rm -f ${DISCONNECT_FILE}
if test -z "${IP}";then
test -f "${CLIPID}" && kill $(cat ${CLIPID}) >/dev/null 2>&1
rm -f "${CLIPID}"
-set -x
-
sleep 5
if ! test -f ${DISCONNECT_FILE};then