mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 19:14:30 +04:00
vpnc-script: restart dnsmasq when openconnect disconnects
Signed-off-by: David Bentham <db260179@gmail.com>
This commit is contained in:
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=vpnc-scripts
|
PKG_NAME:=vpnc-scripts
|
||||||
PKG_VERSION:=20151220
|
PKG_VERSION:=20151220
|
||||||
PKG_RELEASE:=2
|
PKG_RELEASE:=3
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
|
|||||||
@@ -164,7 +164,11 @@ do_connect() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
do_disconnect() {
|
do_disconnect() {
|
||||||
|
if [ -f "/tmp/dnsmasq.d/openconnect.$TUNDEV" ]; then
|
||||||
rm -f "/tmp/dnsmasq.d/openconnect.$TUNDEV"
|
rm -f "/tmp/dnsmasq.d/openconnect.$TUNDEV"
|
||||||
|
/etc/init.d/dnsmasq restart
|
||||||
|
fi
|
||||||
|
|
||||||
proto_init_update "$TUNDEV" 0
|
proto_init_update "$TUNDEV" 0
|
||||||
proto_send_update "$INTERFACE"
|
proto_send_update "$INTERFACE"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user