aboutsummaryrefslogtreecommitdiffstats
path: root/package/6relayd/files/6relayd.hotplug
diff options
context:
space:
mode:
Diffstat (limited to 'package/6relayd/files/6relayd.hotplug')
-rw-r--r--package/6relayd/files/6relayd.hotplug6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/6relayd/files/6relayd.hotplug b/package/6relayd/files/6relayd.hotplug
new file mode 100644
index 0000000000..79052822f6
--- /dev/null
+++ b/package/6relayd/files/6relayd.hotplug
@@ -0,0 +1,6 @@
+#!/bin/sh
+/etc/init.d/6relayd enabled || exit 0
+[ -n "$INTERFACE" ] || exit 0
+
+. /etc/init.d/6relayd
+restart_affected "$INTERFACE"