]> git.pld-linux.org Git - packages/openvpn.git/commitdiff
- fix messages when no tunnels are configured
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 4 Sep 2005 18:10:09 +0000 (18:10 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    openvpn.init -> 1.20

openvpn.init

index 1fc4e076a2516b760bb27a742c5b07efbee2a758..00bff247eb2540b5802c2a5d16900cde6f61c725 100644 (file)
@@ -45,13 +45,14 @@ RETVAL=0
 # See how we were called.
 case "$1" in
   start)
+       if [ -z "$TUNNELS" ]; then
+               nls "No tunnels configured in /etc/sysconfig/openvpn"
+               exit 6
+       fi
+
        # Check if the service is already running?
        if ! tunlup; then
                msg_starting "OpenVPN"; started
-               if [ -z "$TUNNELS" ]; then
-                       nls "No tunnels configured in /etc/sysconfig/openvpn"
-                       exit 6
-               fi
                for tun in $TUNNELS; do
                        show "Starting OpenVPN tunnel %s" "$tun"
                        if TUNNELS=$tun tunlup; then
This page took 0.033418 seconds and 4 git commands to generate.