diff options
author | Steven Barth <cyrus@openwrt.org> | 2013-01-13 17:25:38 +0000 |
---|---|---|
committer | Steven Barth <cyrus@openwrt.org> | 2013-01-13 17:25:38 +0000 |
commit | fde5b934fd2cdbaa179329030b8a16c34b11ffea (patch) | |
tree | ff9e94d5994282beda8d2dd859015bcf4be1ee3d /package/network/ipv6/6relayd/files/6relayd.hotplug | |
parent | 1474359bd3426864a7d844c39b8f2dedf26c2119 (diff) | |
download | mtk-20170518-fde5b934fd2cdbaa179329030b8a16c34b11ffea.zip mtk-20170518-fde5b934fd2cdbaa179329030b8a16c34b11ffea.tar.gz mtk-20170518-fde5b934fd2cdbaa179329030b8a16c34b11ffea.tar.bz2 |
6relayd: Rewrite init-script logic
SVN-Revision: 35133
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 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" |