From: jow Date: Thu, 13 Aug 2009 00:48:52 +0000 (+0000) Subject: [packages] openvpn: load config only once in the init script up() and down() sections X-Git-Url: http://207.154.207.93/?a=commitdiff_plain;h=9f429bdf597d17c7b2b6e6948c03e5e7e31071a9;p=packages.git [packages] openvpn: load config only once in the init script up() and down() sections git-svn-id: svn://svn.openwrt.org/openwrt/packages@17237 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/net/openvpn/files/openvpn.init b/net/openvpn/files/openvpn.init index 73684368e..1f2fcc90d 100644 --- 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"