From: Tobias Brunner Date: Thu, 21 Jun 2012 15:58:59 +0000 (+0200) Subject: Removed pluto-specifics from ipsec script X-Git-Tag: 5.0.0~71 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=693805cc981229236fc9de4eb87312089c009e87;p=thirdparty%2Fstrongswan.git Removed pluto-specifics from ipsec script --- diff --git a/src/ipsec/ipsec.in b/src/ipsec/ipsec.in index 479974a0ea..a2d77b6d91 100644 --- a/src/ipsec/ipsec.in +++ b/src/ipsec/ipsec.in @@ -30,14 +30,12 @@ IPSEC_CONFDIR="@IPSEC_CONFDIR@" IPSEC_PIDDIR="@IPSEC_PIDDIR@" IPSEC_STARTER_PID="${IPSEC_PIDDIR}/starter.pid" -IPSEC_PLUTO_PID="${IPSEC_PIDDIR}/pluto.pid" IPSEC_CHARON_PID="${IPSEC_PIDDIR}/charon.pid" -IPSEC_WHACK="${IPSEC_DIR}/whack" IPSEC_STROKE="${IPSEC_DIR}/stroke" 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 +export IPSEC_DIR IPSEC_SBINDIR IPSEC_CONFDIR IPSEC_PIDDIR IPSEC_VERSION IPSEC_NAME IPSEC_STARTER_PID IPSEC_CHARON_PID IPSEC_DISTRO="Institute for Internet Technologies and Applications\nUniversity of Applied Sciences Rapperswil, Switzerland" @@ -57,7 +55,6 @@ case "$1" in echo " update|reload|stop" echo " up|down|route|unroute " echo " status|statusall []" - echo " ready" echo " listalgs|listpubkeys|listcerts [--utc]" echo " listcacerts|listaacerts|listocspcerts [--utc]" echo " listacerts|listgroups|listcainfos [--utc]" @@ -67,14 +64,11 @@ case "$1" in echo " rereadcacerts|rereadaacerts|rereadocspcerts" echo " rereadacerts|rereadcrls|rereadall" echo " purgeocsp|purgecrls|purgecerts|purgeike" - echo " scencrypt|scdecrypt [--inbase ] [--outbase ] [--keyid ]" echo " openac" - echo " pluto" echo " scepclient" echo " secrets" echo " starter" echo " version" - echo " whack" echo " stroke" echo echo "Some of these functions have their own manual pages, e.g. ipsec_scepclient(8)." @@ -104,11 +98,6 @@ down) exit 2 fi rc=7 - if [ -e $IPSEC_PLUTO_PID ] - then - $IPSEC_WHACK --name "$1" --terminate - rc="$?" - fi if [ -e $IPSEC_CHARON_PID ] then $IPSEC_STROKE down "$1" @@ -134,11 +123,6 @@ down-srcip) listcards|rereadgroups) op="$1" shift - if [ -e $IPSEC_PLUTO_PID ] - then - $IPSEC_WHACK "$@" "--$op" - rc="$?" - fi if [ -e $IPSEC_CHARON_PID ] then exit 3 @@ -150,15 +134,6 @@ leases) op="$1" rc=7 shift - if [ -e $IPSEC_PLUTO_PID ] - then - case "$#" in - 0) $IPSEC_WHACK "--$op" ;; - 1) $IPSEC_WHACK "--$op" --name "$1" ;; - *) $IPSEC_WHACK "--$op" --name "$1" --lease-addr "$2" ;; - esac - rc="$?" - fi if [ -e $IPSEC_CHARON_PID ] then case "$#" in @@ -180,11 +155,6 @@ rereadall|purgeocsp) op="$1" rc=7 shift - if [ -e $IPSEC_PLUTO_PID ] - then - $IPSEC_WHACK "$@" "--$op" - rc="$?" - fi if [ -e $IPSEC_CHARON_PID ] then $IPSEC_STROKE "$op" "$@" @@ -201,16 +171,6 @@ purgeike|purgecrls|purgecerts) fi exit "$rc" ;; -ready) - shift - if [ -e $IPSEC_PLUTO_PID ] - then - $IPSEC_WHACK --listen - exit 0 - else - exit 7 - fi - ;; reload) rc=7 if [ -e $IPSEC_STARTER_PID ] @@ -237,11 +197,6 @@ route|unroute) echo "Usage: ipsec $op " exit 2 fi - if [ -e $IPSEC_PLUTO_PID ] - then - $IPSEC_WHACK --name "$1" "--$op" - rc="$?" - fi if [ -e $IPSEC_CHARON_PID ] then $IPSEC_STROKE "$op" "$1" @@ -249,24 +204,8 @@ route|unroute) fi exit "$rc" ;; -scencrypt|scdecrypt) - op="$1" - shift - if [ -e $IPSEC_PLUTO_PID ] - then - $IPSEC_WHACK "--$op" "$@" - exit "$?" - else - exit 7 - fi - ;; secrets) rc=7 - if [ -e $IPSEC_PLUTO_PID ] - then - $IPSEC_WHACK --rereadsecrets - rc="$?" - fi if [ -e $IPSEC_CHARON_PID ] then $IPSEC_STROKE rereadsecrets @@ -293,19 +232,11 @@ status|statusall) shift if [ $# -eq 0 ] then - if [ -e $IPSEC_PLUTO_PID ] - then - $IPSEC_WHACK "--$op" - fi if [ -e $IPSEC_CHARON_PID ] then $IPSEC_STROKE "$op" fi else - if [ -e $IPSEC_PLUTO_PID ] - then - $IPSEC_WHACK --name "$1" "--$op" - fi if [ -e $IPSEC_CHARON_PID ] then $IPSEC_STROKE "$op" "$1" @@ -355,11 +286,6 @@ up) exit 2 fi rc=7 - if [ -e $IPSEC_PLUTO_PID ] - then - $IPSEC_WHACK --name "$1" --initiate - rc="$?" - fi if [ -e $IPSEC_CHARON_PID ] then $IPSEC_STROKE up "$1"