projects
/
openwrt
/
svn-archive
/
archive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1cd8b39
)
[packages] openvpn: load config only once in the init script up() and down() sections
author
Jo-Philipp Wich
<jow@openwrt.org>
Thu, 13 Aug 2009 00:48:52 +0000
(
00:48
+0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Thu, 13 Aug 2009 00:48:52 +0000
(
00:48
+0000)
SVN-Revision: 17237
net/openvpn/files/openvpn.init
patch
|
blob
|
history
diff --git
a/net/openvpn/files/openvpn.init
b/net/openvpn/files/openvpn.init
index 73684368ea628c3e652747fadb61af63c5600ec2..1f2fcc90d2e67c3ab80bb72de00f795bbe65156f 100644
(file)
--- a/
net/openvpn/files/openvpn.init
+++ b/
net/openvpn/files/openvpn.init
@@
-148,8
+148,8
@@
restart() {
up() {
local exists
local INSTANCE
+ config_load openvpn
for INSTANCE in "$@"; do
- config_load openvpn
config_get exists "$INSTANCE" TYPE
if [ "$exists" == "openvpn" ]; then
start_service "$INSTANCE"
@@
-160,8
+160,8
@@
up() {
down() {
local exists
local INSTANCE
+ config_load openvpn
for INSTANCE in "$@"; do
- config_load openvpn
config_get exists "$INSTANCE" TYPE
if [ "$exists" == "openvpn" ]; then
stop_service "$INSTANCE"