projects
/
packages.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
poco: moved to github
[packages.git]
/
ipv6
/
miredo
/
files
/
miredo.init
diff --git
a/ipv6/miredo/files/miredo.init
b/ipv6/miredo/files/miredo.init
index
90e70c4
..
0a83c96
100644
(file)
--- a/
ipv6/miredo/files/miredo.init
+++ b/
ipv6/miredo/files/miredo.init
@@
-1,20
+1,15
@@
#!/bin/sh /etc/rc.common
#!/bin/sh /etc/rc.common
-# Copyright (C) 2006 OpenWrt.org
+# Copyright (C) 2006-2011 OpenWrt.org
+
START=50
START=50
-BIN=miredo
-DEFAULT=/etc/default/$BIN
-RUN_D=/var/run
-PID_F=$RUN_D/$BIN.pid
+# XXX: miredo create a pid file but using it doesn't seem to work
+#SERVICE_USE_PID=1
start() {
start() {
- [ -f $DEFAULT ] && . $DEFAULT
- [ -d $RUN_D ] || mkdir -p $RUN_D
- insmod ipv6
- insmod tun
- $BIN $OPTIONS
+ service_start /usr/sbin/miredo
}
stop() {
}
stop() {
- [ -f $PID_F ] && kill $(cat $PID_F)
+ service_stop /usr/sbin/miredo
}
}