virtual-ip-override scenario added
[strongswan.git] / src / ipsec / ipsec.in
index 5524ee6..067d247 100755 (executable)
@@ -36,8 +36,8 @@ IPSEC_STARTER="${IPSEC_DIR}/starter"
 
 export IPSEC_DIR IPSEC_SBINDIR IPSEC_CONFDIR IPSEC_PIDDIR IPSEC_VERSION IPSEC_NAME IPSEC_STARTER_PID IPSEC_PLUTO_PID IPSEC_CHARON_PID
 
-IPSEC_DISTRO="Distributed by the Institute of Internet Technologies and Applications
-              University of Applied Sciences Rapperswil, Switzerland (ITA-HSR)"
+IPSEC_DISTRO="Institute for Internet Technologies and Applications\n
+              University of Applied Sciences Rapperswil, Switzerland"
 
 case "$1" in
 '')
@@ -111,20 +111,22 @@ down)
        fi
        exit 0
        ;;
-listalgs|listpubkeys|listaacerts|\
-listocspcerts|listacerts|listgroups|\
-listcainfos|listocsp|listcards|\
-purgeocsp|rereadsecrets|rereadgroups|\
-rereadaacerts|rereadocspcerts|rereadacerts)
+listalgs|listpubkeys|\listcards|\
+rereadsecrets|rereadgroups)
        op="$1"
        shift
        if test -e $IPSEC_PLUTO_PID
        then
                $IPSEC_WHACK "$@" "--$op"
        fi
+       exit 0
        ;;
-listcerts|listcacerts|listcrls|listall|\
-rereadcacerts|rereadcrls|rereadall)
+listcerts|listcacerts|listaacerts|\
+listacerts|listgroups|listocspcerts|\
+listcainfos|listcrls|listocsp|listall|\
+rereadcacerts|rereadaacerts|rereadacerts|\
+rereadocspcerts|rereadcrls|\
+rereadall|purgeocsp)
        op="$1"
        shift
        if test -e $IPSEC_PLUTO_PID
@@ -174,6 +176,10 @@ route|unroute)
        then
                $IPSEC_WHACK --name "$1" "--$op"
        fi
+       if test -e $IPSEC_CHARON_PID
+       then
+               $IPSEC_STROKE "$op" "$1"
+       fi
        exit 0
        ;;
 scencrypt|scdecrypt)