From ab5e244a5ee048a2406bbce68538d6f09b229fea Mon Sep 17 00:00:00 2001 From: jow Date: Sun, 5 Feb 2012 16:11:41 +0000 Subject: [PATCH] [packages_10.03.2] srelay: merge r29066 git-svn-id: svn://svn.openwrt.org/openwrt/branches/packages_10.03.2@30262 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- net/srelay/Makefile | 4 ++-- net/srelay/files/srelay.init | 11 ++++++----- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/net/srelay/Makefile b/net/srelay/Makefile index 7a8cb42..d579d1d 100644 --- a/net/srelay/Makefile +++ b/net/srelay/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2006-2010 OpenWrt.org +# Copyright (C) 2006-2011 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=srelay PKG_VERSION:=0.4.8b3 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=@SF/socks-relay diff --git a/net/srelay/files/srelay.init b/net/srelay/files/srelay.init index 6d23438..95d1d81 100644 --- a/net/srelay/files/srelay.init +++ b/net/srelay/files/srelay.init @@ -1,13 +1,14 @@ #!/bin/sh /etc/rc.common -# Copyright (C) 2006 OpenWrt.org +# Copyright (C) 2006-2011 OpenWrt.org + START=50 +SERVICE_USE_PID=1 + start() { - if [ -f /etc/srelay.conf ];then - srelay -c /etc/srelay.conf -r -s - fi + service_start /usr/bin/srelay -c /etc/srelay.conf -r -s } stop() { - killall srelay + service_stop /usr/bin/srelay } -- 2.11.0