projects
/
openwrt
/
svn-archive
/
packages.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c1e628
)
tinc: The initscript for tinc writes a temporary config into /tmp/tinc. In the prepar...
author
Saverio Proto
<zioproto@gmail.com>
Tue, 8 Jan 2013 18:56:32 +0000
(18:56 +0000)
committer
Saverio Proto
<zioproto@gmail.com>
Tue, 8 Jan 2013 18:56:32 +0000
(18:56 +0000)
SVN-Revision: 35053
net/tinc/files/tinc.init
patch
|
blob
|
history
diff --git
a/net/tinc/files/tinc.init
b/net/tinc/files/tinc.init
index 55a86a1d70a8d3b91177181c725bc4839563c0ef..9ab1bd00c495b3ee091c4a302054bdb2cb4186e6 100644
(file)
--- a/
net/tinc/files/tinc.init
+++ b/
net/tinc/files/tinc.init
@@
-135,6
+135,9
@@
prepare_net() {
section_enabled "$s" || return 1
+ # rm old config
+ rm -rf "$TMP_TINC/$s/"
+
[ ! -d "$TMP_TINC/$s" ] && mkdir -p "$TMP_TINC/$s"
[ -d "/etc/tinc/$s" ] && cp -r "/etc/tinc/$s" "$TMP_TINC/"
@@
-179,6
+182,8
@@
stop_instance() {
SERVICE_PID_FILE="/var/run/tinc.$s.pid"
service_stop $BIN
+ # rm old config
+ rm -rf "$TMP_TINC/$s/"
}
reload_instance() {