diff options
author | cyrus <cyrus@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-01-21 11:27:03 +0000 |
---|---|---|
committer | cyrus <cyrus@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-01-21 11:27:03 +0000 |
commit | bedddbd24176e277edaaf325c772cb498a3bf4db (patch) | |
tree | a94c9f6fc1dae10ce3e8ad4009cc32ac0725b768 /package | |
parent | 5a2ebe4b982d38eb8f7405164c1e7aaf3a08fb22 (diff) |
6relayd: fix shell library includes in init-script
Thanks to Daniel Golle
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35262 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r-- | package/network/ipv6/6relayd/Makefile | 2 | ||||
-rw-r--r-- | package/network/ipv6/6relayd/files/6relayd.init | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/package/network/ipv6/6relayd/Makefile b/package/network/ipv6/6relayd/Makefile index a0b504f96a..d6d530dcad 100644 --- a/package/network/ipv6/6relayd/Makefile +++ b/package/network/ipv6/6relayd/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=6relayd -PKG_VERSION:=2013-01-21 +PKG_VERSION:=2013-01-21.1 PKG_RELEASE=$(PKG_SOURCE_VERSION) PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 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 |