--- dhclient-script.orig 2008-11-09 20:03:02.000000000 +0100 +++ dhclient-script 2008-11-09 20:03:20.000000000 +0100 @@ -13,6 +13,11 @@ # The alias handling in here probably still sucks. -mdz make_resolv_conf() { + # Do not renew resolv.conf when vpntunnel is open + [ "$reason" = "RENEW" ] &&\ + [ -n "( ifconfig -s | awk ' ( $1 ~ /^(tun|cipsec)/ ) {print $1}' )"] &&\ + return + if [ -n "$new_domain_name" -o -n "$new_domain_name_servers" ]; then # Find out whether we are going to mount / rw exec 9>&0