packages/net/aprx/files/aprx.init
florian a14070d187 Update aprx to 0.99 (#3805)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@11918 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-07-24 14:06:26 +00:00

24 lines
321 B
Bash

#!/bin/sh /etc/rc.common
#Init script for aprx
START=99
APRX_BIN="/usr/sbin/aprx"
APRX_LOG_DIR="/var/log/aprx"
system_config() {
local cfg="$1"
config_get hostname "$cfg" hostname
}
start() {
[ -x "$APRX_BIN" ] || return 1
[ -d "$APRX_LOG_DIR" ] || mkdir -p $APRX_LOG_DIR
$APRX_BIN
}
stop() {
killall aprx
}