mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-30 16:14:12 +00:00
6relayd: fix shell library includes in init-script
Thanks to Daniel Golle SVN-Revision: 35262
This commit is contained in:
parent
8a97d823a4
commit
38080ae550
@ -8,7 +8,7 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=6relayd
|
PKG_NAME:=6relayd
|
||||||
PKG_VERSION:=2013-01-21
|
PKG_VERSION:=2013-01-21.1
|
||||||
PKG_RELEASE=$(PKG_SOURCE_VERSION)
|
PKG_RELEASE=$(PKG_SOURCE_VERSION)
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
#!/bin/sh /etc/rc.common
|
#!/bin/sh /etc/rc.common
|
||||||
# Copyright (c) 2011-2012 OpenWrt.org
|
# Copyright (c) 2011-2012 OpenWrt.org
|
||||||
START=80
|
START=80
|
||||||
. /lib/functions/network.sh
|
|
||||||
. /lib/functions/service.sh
|
|
||||||
|
|
||||||
start_6relayd() {
|
start_6relayd() {
|
||||||
local cfg="$1"
|
local cfg="$1"
|
||||||
@ -107,6 +105,8 @@ restart_affected_6relayd() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
restart_affected() {
|
restart_affected() {
|
||||||
|
. /lib/functions/service.sh
|
||||||
|
. /lib/functions/network.sh
|
||||||
local net="$1"
|
local net="$1"
|
||||||
config_load 6relayd
|
config_load 6relayd
|
||||||
config_foreach restart_affected_6relayd server "$net"
|
config_foreach restart_affected_6relayd server "$net"
|
||||||
@ -114,6 +114,7 @@ restart_affected() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
|
. /lib/functions/service.sh
|
||||||
for pid in /var/run/6relayd-*.pid; do
|
for pid in /var/run/6relayd-*.pid; do
|
||||||
SERVICE_PID_FILE="$pid"
|
SERVICE_PID_FILE="$pid"
|
||||||
service_stop /usr/sbin/6relayd
|
service_stop /usr/sbin/6relayd
|
||||||
@ -122,6 +123,8 @@ stop() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
|
. /lib/functions/service.sh
|
||||||
|
. /lib/functions/network.sh
|
||||||
config_load 6relayd
|
config_load 6relayd
|
||||||
config_foreach start_6relayd server
|
config_foreach start_6relayd server
|
||||||
config_foreach start_6relayd relay relay
|
config_foreach start_6relayd relay relay
|
||||||
|
Loading…
x
Reference in New Issue
Block a user