packages/srelay: use new service functions
git-svn-id: svn://svn.openwrt.org/openwrt/packages@29066 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
1df02c4d18
commit
67d3639f8c
@ -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
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user