repo.or.cz
/
tomato
/
davidwu.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Allow IPv6 address entry in tools>ping - Loosens valid character check
[tomato/davidwu.git]
/
release
/
src
/
router
/
xl2tpd
/
packaging
/
openwrt
/
xl2tpd.init
blob
b5344b51c028d1f92023c02afb721fee2bd21242
1
#!/bin/sh /etc/rc.common
2
3
START
=
60
4
BIN
=
xl2tpd
5
DEFAULT
=/
etc
/
default
/
$BIN
6
RUN_D
=/
var
/
run
7
PID_F
=
$RUN_D
/
$BIN
.pid
8
9
start
() {
10
[
-f
$DEFAULT
] &&
.
$DEFAULT
11
$BIN $OPTIONS
12
}
13
14
stop
() {
15
[
-f
$PID_F
] &&
kill
$
(
cat
$PID_F
)
16
}
17