- fixed charon checks
- using status & statusall
This commit is contained in:
@@ -60,7 +60,7 @@ diff -Naur strongswan-2.7.0/programs/ipsec/ipsec.in strongswan-2.7.0-charon/prog
|
|||||||
op="$1"
|
op="$1"
|
||||||
shift
|
shift
|
||||||
$IPSEC_EXECDIR/whack "$@" "--$op"
|
$IPSEC_EXECDIR/whack "$@" "--$op"
|
||||||
+ if test -e $IPSEC_EXECDIR/stroke
|
+ if test -e $IPSEC_CHARON_PID
|
||||||
+ then
|
+ then
|
||||||
+ $IPSEC_EXECDIR/stroke "$op"
|
+ $IPSEC_EXECDIR/stroke "$op"
|
||||||
+ fi
|
+ fi
|
||||||
@@ -71,15 +71,15 @@ diff -Naur strongswan-2.7.0/programs/ipsec/ipsec.in strongswan-2.7.0-charon/prog
|
|||||||
if test $# -eq 0
|
if test $# -eq 0
|
||||||
then
|
then
|
||||||
$IPSEC_EXECDIR/whack "--$op"
|
$IPSEC_EXECDIR/whack "--$op"
|
||||||
+ if test -e $IPSEC_EXECDIR/stroke
|
+ if test -e $IPSEC_CHARON_PID
|
||||||
+ then
|
+ then
|
||||||
+ $IPSEC_EXECDIR/stroke status
|
+ $IPSEC_EXECDIR/stroke "$op"
|
||||||
+ fi
|
+ fi
|
||||||
else
|
else
|
||||||
$IPSEC_EXECDIR/whack --name "$1" "--$op"
|
$IPSEC_EXECDIR/whack --name "$1" "--$op"
|
||||||
+ if test -e $IPSEC_CHARON_PID
|
+ if test -e $IPSEC_CHARON_PID
|
||||||
+ then
|
+ then
|
||||||
+ $IPSEC_EXECDIR/stroke status
|
+ $IPSEC_EXECDIR/stroke "$op" "$1"
|
||||||
+ fi
|
+ fi
|
||||||
fi
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
Reference in New Issue
Block a user