packages/aprx: use new service functions
git-svn-id: svn://svn.openwrt.org/openwrt/packages@29048 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
26bd7b8d0e
commit
022ff25d95
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2008-2010 OpenWrt.org
|
# Copyright (C) 2008-2011 OpenWrt.org
|
||||||
#
|
#
|
||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
PKG_NAME:=aprx
|
PKG_NAME:=aprx
|
||||||
PKG_REV:=421
|
PKG_REV:=421
|
||||||
PKG_VERSION:=2.00_r$(PKG_REV)
|
PKG_VERSION:=2.00_r$(PKG_REV)
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
||||||
PKG_SOURCE_URL:=http://repo.ham.fi/svn/aprx/trunk/
|
PKG_SOURCE_URL:=http://repo.ham.fi/svn/aprx/trunk/
|
||||||
|
@ -1,23 +1,15 @@
|
|||||||
#!/bin/sh /etc/rc.common
|
#!/bin/sh /etc/rc.common
|
||||||
#Init script for aprx
|
# Copyright (C) 2008-2011 OpenWrt.org
|
||||||
|
|
||||||
START=99
|
START=99
|
||||||
APRX_BIN="/usr/sbin/aprx"
|
|
||||||
APRX_LOG_DIR="/var/log/aprx"
|
|
||||||
|
|
||||||
system_config() {
|
|
||||||
local cfg="$1"
|
|
||||||
|
|
||||||
config_get hostname "$cfg" hostname
|
|
||||||
}
|
|
||||||
|
|
||||||
|
SERVICE_USE_PID=1
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
[ -x "$APRX_BIN" ] || return 1
|
mkdir -m 0755 -p /var/log/aprx
|
||||||
[ -d "$APRX_LOG_DIR" ] || mkdir -p $APRX_LOG_DIR
|
service_start /usr/sbin/aprx
|
||||||
$APRX_BIN
|
}
|
||||||
}
|
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
killall aprx
|
service_stop /usr/sbin/aprx
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user