mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-20 00:00:45 -04:00
Added pluto/whack output to 'ipsec leases'.
This commit is contained in:
parent
6bfa8e907c
commit
e82b5755be
@ -67,7 +67,7 @@ case "$1" in
|
||||
echo " rereadacerts|rereadcrls|rereadall"
|
||||
echo " purgeocsp|purgeike"
|
||||
echo " scencrypt|scdecrypt <value> [--inbase <base>] [--outbase <base>] [--keyid <id>]"
|
||||
echo " openac"
|
||||
echo " openac"
|
||||
echo " pluto"
|
||||
echo " scepclient"
|
||||
echo " secrets"
|
||||
@ -149,6 +149,15 @@ 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
|
||||
@ -330,7 +339,7 @@ stop)
|
||||
fi
|
||||
fi
|
||||
else
|
||||
echo "Stopping strongSwan IPsec failed: starter is not running" >&2
|
||||
echo "Stopping strongSwan IPsec failed: starter is not running" >&2
|
||||
fi
|
||||
if [ -d /var/lock/subsys ]; then
|
||||
rm -f /var/lock/subsys/ipsec
|
||||
|
Loading…
x
Reference in New Issue
Block a user