DNS_UPDATE is tested against "no" in the vpnc-script script, instead of
$DNS_UPDATE

Hrm, actually, $DNS_UPDATE is set to " no", with the space before it.

Who sets DNS_UPDATE?  Is it in the /sbin/vpnc binary?  Why doesn't it
strip off the leading space?

So the bug is worked around by a test such as:
    if [[ "$DNS_UPDATE" = *no ]] ; then


Furthermore, the networks routing loop should be:

                for network in $TARGET_NETWORKS ; do
                    ip route del $network 2>/dev/null
                    ip route add $network dev $TUNDEV
                done

with $network in place of $i



-- 
TimC -- http://http://astronomy.swin.edu.au/staff/tconnors/

>Cats are intended to teach us that not everything in nature has a function.
You're saying cats are the opposite of bijectiveness?
        -- ST in RHOD




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to