summaryrefslogtreecommitdiff
path: root/package/network/ipv6/6relayd/files/6relayd.hotplug
diff options
context:
space:
mode:
Diffstat (limited to 'package/network/ipv6/6relayd/files/6relayd.hotplug')
-rw-r--r--package/network/ipv6/6relayd/files/6relayd.hotplug6
1 files changed, 5 insertions, 1 deletions
diff --git a/package/network/ipv6/6relayd/files/6relayd.hotplug b/package/network/ipv6/6relayd/files/6relayd.hotplug
index e29a34a..7905282 100644
--- a/package/network/ipv6/6relayd/files/6relayd.hotplug
+++ b/package/network/ipv6/6relayd/files/6relayd.hotplug
@@ -1,2 +1,6 @@
#!/bin/sh
-/etc/init.d/6relayd enabled && /etc/init.d/6relayd start
+/etc/init.d/6relayd enabled || exit 0
+[ -n "$INTERFACE" ] || exit 0
+
+. /etc/init.d/6relayd
+restart_affected "$INTERFACE"