diff options
author | Rene Mayrhofer <rene@mayrhofer.eu.org> | 2006-06-26 11:35:51 +0000 |
---|---|---|
committer | Rene Mayrhofer <rene@mayrhofer.eu.org> | 2006-06-26 11:35:51 +0000 |
commit | 6bdb8dc1a62c9bb4b0fd7e19e5f2b63357029c9d (patch) | |
tree | 7047fbf7a1a0ae2a3fa7b61e0d444b8648e4e752 /programs/ipsec | |
parent | 55fc0aea7f632d151b076c636752f0fa712cde86 (diff) | |
download | vyos-strongswan-6bdb8dc1a62c9bb4b0fd7e19e5f2b63357029c9d.tar.gz vyos-strongswan-6bdb8dc1a62c9bb4b0fd7e19e5f2b63357029c9d.zip |
Update to 2.7.2.
Diffstat (limited to 'programs/ipsec')
-rwxr-xr-x | programs/ipsec/ipsec.in | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/programs/ipsec/ipsec.in b/programs/ipsec/ipsec.in index 0616561d8..1c657b9e7 100755 --- a/programs/ipsec/ipsec.in +++ b/programs/ipsec/ipsec.in @@ -12,7 +12,7 @@ # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License # for more details. # -# RCSID $Id: ipsec.in,v 1.13 2006/03/09 20:09:33 as Exp $ +# RCSID $Id: ipsec.in,v 1.14 2006/05/25 11:52:03 as Exp $ IPSEC_NAME=strongSwan @@ -122,6 +122,11 @@ case "$1" in ;; down) shift + if [ "$#" -ne 1 ] + then + echo "Usage: ipsec down <connection name>" + exit 1 + fi $IPSEC_EXECDIR/whack --name "$1" --terminate exit 0 ;; @@ -161,6 +166,11 @@ restart) route|unroute) op="$1" shift + if [ "$#" -ne 1 ] + then + echo "Usage: ipsec $op <connection name>" + exit 1 + fi $IPSEC_EXECDIR/whack --name "$1" "--$op" exit 0 ;; @@ -197,6 +207,11 @@ stop) ;; up) shift + if [ "$#" -ne 1 ] + then + echo "Usage: ipsec up <connection name>" + exit 1 + fi $IPSEC_EXECDIR/whack --name "$1" --initiate exit 0 ;; |