Merge pull request #19372 from cotequeiroz/libgd
[feed/packages.git] / net / vpnc-scripts / files / vpnc-script
index 685e73d5645855100e5cadf97711935d7c9b21fd..772c4a45a1ba14b6ebae96de6a11ad551a2f8a02 100755 (executable)
@@ -164,7 +164,11 @@ do_connect() {
 }
 
 do_disconnect() {
-       rm -f "/tmp/dnsmasq.d/openconnect.$TUNDEV"
+       if [ -f "/tmp/dnsmasq.d/openconnect.$TUNDEV" ]; then
+               rm -f "/tmp/dnsmasq.d/openconnect.$TUNDEV"
+               /etc/init.d/dnsmasq restart
+       fi
+
        proto_init_update "$TUNDEV" 0
        proto_send_update "$INTERFACE"
 }