diff options
author | Steven Barth <steven@midlink.org> | 2013-01-13 17:25:38 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2013-01-13 17:25:38 +0000 |
commit | ae972de3fb204575f11e5130ab17a212cd949de7 (patch) | |
tree | 47992d85a3fdac0251e917cf38c5a3cb8575eb68 /package/network/ipv6/6relayd/files/6relayd.hotplug | |
parent | cc1bb7b0342956b2487a335fa4b712919fa2432a (diff) | |
download | upstream-ae972de3fb204575f11e5130ab17a212cd949de7.tar.gz upstream-ae972de3fb204575f11e5130ab17a212cd949de7.tar.bz2 upstream-ae972de3fb204575f11e5130ab17a212cd949de7.zip |
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.hotplug | 6 |
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 e29a34a09e..79052822f6 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" |