summaryrefslogtreecommitdiffstats
path: root/package/network/ipv6/6relayd/files/6relayd.hotplug
diff options
context:
space:
mode:
authorcyrus <cyrus@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-01-13 17:25:38 +0000
committercyrus <cyrus@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-01-13 17:25:38 +0000
commitc30cb2cb1dd138ba5748852d4e7f00d49f4dcef0 (patch)
tree47992d85a3fdac0251e917cf38c5a3cb8575eb68 /package/network/ipv6/6relayd/files/6relayd.hotplug
parent94fff5b28525052875304acbd8b1207e7d9b3547 (diff)
6relayd: Rewrite init-script logic
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35133 3c298f89-4303-0410-b956-a3cf2f4a3e73
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 e29a34a09..79052822f 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"