Author: glen                         Date: Sun Sep  4 18:10:14 2005 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- fix messages when no tunnels are configured

---- Files affected:
SOURCES:
   openvpn.init (1.19 -> 1.20) 

---- Diffs:

================================================================
Index: SOURCES/openvpn.init
diff -u SOURCES/openvpn.init:1.19 SOURCES/openvpn.init:1.20
--- SOURCES/openvpn.init:1.19   Sat Jul  9 19:53:37 2005
+++ SOURCES/openvpn.init        Sun Sep  4 20:10:09 2005
@@ -45,13 +45,14 @@
 # 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
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/openvpn.init?r1=1.19&r2=1.20&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to