}
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"
}