projects
/
openwrt
/
svn-archive
/
archive.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Update aprx to 0.99 (#3805)
[openwrt/svn-archive/archive.git]
/
net
/
aprx
/
files
/
aprx.init
1
#!/bin/sh /etc/rc.common
2
#Init script for aprx
3
4
START
=
99
5
APRX_BIN
=
"/usr/sbin/aprx"
6
APRX_LOG_DIR
=
"/var/log/aprx"
7
8
system_config
() {
9
local
cfg
=
"
$1
"
10
11
config_get hostname
"
$cfg
"
hostname
12
}
13
14
15
start
() {
16
[
-x
"
$APRX_BIN
"
]
||
return
1
17
[
-d
"
$APRX_LOG_DIR
"
]
|| mkdir
-p
$APRX_LOG_DIR
18
$APRX_BIN
19
}
20
21
stop
() {
22
killall aprx
23
}