projects
/
openwrt
/
svn-archive
/
archive.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Add ptrtd (#1402)
[openwrt/svn-archive/archive.git]
/
ipv6
/
ptrtd
/
files
/
ptrtd.init
1
#!/bin/sh /etc/rc.common
2
# Copyright (C) 2006 OpenWrt.org
3
4
START
=
60
5
BIN
=
ptrtd
6
RUN_D
=/
var
/
run
7
PID_F
=
$RUN_D
/
$BIN
.pid
8
9
PREFIX
=
"3ffe:abcd:1234:9876::"
10
LEN
=
64
11
12
13
start
() {
14
mkdir
-p
$RUN_D
15
$BIN
-p
$PREFIX
-l
$LEN
16
}
17
18
stop
() {
19
[
-f
$PID_F
] &&
kill
$
(
cat
$PID_F
)
20
}
21
22
restart
() {
23
stop
24
sleep
1
25
start
26
}