summaryrefslogtreecommitdiff
path: root/net/https-dns-proxy/files/https-dns-proxy.hotplug.iface
diff options
context:
space:
mode:
Diffstat (limited to 'net/https-dns-proxy/files/https-dns-proxy.hotplug.iface')
-rw-r--r--net/https-dns-proxy/files/https-dns-proxy.hotplug.iface6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/https-dns-proxy/files/https-dns-proxy.hotplug.iface b/net/https-dns-proxy/files/https-dns-proxy.hotplug.iface
index 542a8b34f..c25b9e26d 100644
--- a/net/https-dns-proxy/files/https-dns-proxy.hotplug.iface
+++ b/net/https-dns-proxy/files/https-dns-proxy.hotplug.iface
@@ -1,6 +1,6 @@
#!/bin/sh
-if [ "$ACTION" = 'ifup' ] && [ "$INTERFACE" = 'wan' ]; then
- logger -t "https-dns-proxy" "Reloading https-dns-proxy due to $ACTION of $INTERFACE"
- /etc/init.d/https-dns-proxy reload
+if [ "$ACTION" = 'ifup' ] && [ "$INTERFACE" = 'wan' ] && /etc/init.d/https-dns-proxy enabled; then
+ logger -t "https-dns-proxy" "Restarting https-dns-proxy due to $ACTION of $INTERFACE"
+ /etc/init.d/https-dns-proxy restart
fi