Annotation of embedaddon/strongswan/src/libimcv/imv/_imv_policy, revision 1.1.1.1
1.1 misho 1: #! /bin/sh
2: # default TNC policy command script
3: #
4: # Copyright 2013 Andreas Steffen
5: # HSR Hochschule fuer Technik Rapperswil
6: #
7: # This program is free software; you can redistribute it and/or modify it
8: # under the terms of the GNU General Public License as published by the
9: # Free Software Foundation; either version 2 of the License, or (at your
10: # option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
11: #
12: # This program is distributed in the hope that it will be useful, but
13: # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14: # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15: # for more details.
16: #
17: # CAUTION: Installing a new version of strongSwan will install a new
18: # copy of this script, wiping out any custom changes you make. If
19: # you need changes, make a copy of this under another name, and customize
20: # that, and use the "libimcv.policy_script = " option in strongswan.conf
21: # to make strongSwan use yours instead of this default one.
22:
23: # Passed arguments
24: #
25: # $1
26: # action
27: # $2
28: # unique session ID used as a reference by the policy
29: # manager.
30: #
31: case "$1" in
32: start)
33: echo "start session $2"
34: ;;
35: stop)
36: echo "stop session $2"
37: ;;
38: *) echo "$0: unknown command '$1'"
39: exit 1
40: ;;
41: esac
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>