diff options
Diffstat (limited to 'package/network/ipv6/6relayd/files/6relayd.init')
-rw-r--r-- | package/network/ipv6/6relayd/files/6relayd.init | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/package/network/ipv6/6relayd/files/6relayd.init b/package/network/ipv6/6relayd/files/6relayd.init index 74b9d52f79..f35f80c609 100644 --- a/package/network/ipv6/6relayd/files/6relayd.init +++ b/package/network/ipv6/6relayd/files/6relayd.init @@ -1,8 +1,6 @@ #!/bin/sh /etc/rc.common # Copyright (c) 2011-2012 OpenWrt.org START=80 -. /lib/functions/network.sh -. /lib/functions/service.sh start_6relayd() { local cfg="$1" @@ -107,6 +105,8 @@ restart_affected_6relayd() { } restart_affected() { + . /lib/functions/service.sh + . /lib/functions/network.sh local net="$1" config_load 6relayd config_foreach restart_affected_6relayd server "$net" @@ -114,6 +114,7 @@ restart_affected() { } stop() { + . /lib/functions/service.sh for pid in /var/run/6relayd-*.pid; do SERVICE_PID_FILE="$pid" service_stop /usr/sbin/6relayd @@ -122,6 +123,8 @@ stop() { } start() { + . /lib/functions/service.sh + . /lib/functions/network.sh config_load 6relayd config_foreach start_6relayd server config_foreach start_6relayd relay relay |