summaryrefslogtreecommitdiffstats
path: root/package/strongswan/files/ipsec.iface
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2007-02-28 13:30:51 +0000
committerFlorian Fainelli <florian@openwrt.org>2007-02-28 13:30:51 +0000
commitc3521420dc2ddd0535690ab6569cd57c4b078035 (patch)
tree4b1f3ed52b3ea4d610732c7f0fbbf32d14f2cc57 /package/strongswan/files/ipsec.iface
parent15a9b61bbd1c7d1dec7cdb0992462356aec63905 (diff)
downloadmaster-31e0f0ae-c3521420dc2ddd0535690ab6569cd57c4b078035.tar.gz
master-31e0f0ae-c3521420dc2ddd0535690ab6569cd57c4b078035.tar.bz2
master-31e0f0ae-c3521420dc2ddd0535690ab6569cd57c4b078035.zip
Add strongswan (#1330)
SVN-Revision: 6429
Diffstat (limited to 'package/strongswan/files/ipsec.iface')
-rw-r--r--package/strongswan/files/ipsec.iface8
1 files changed, 8 insertions, 0 deletions
diff --git a/package/strongswan/files/ipsec.iface b/package/strongswan/files/ipsec.iface
new file mode 100644
index 0000000000..95e0958b84
--- /dev/null
+++ b/package/strongswan/files/ipsec.iface
@@ -0,0 +1,8 @@
+NAME=ipsec
+CTLFILE="/var/run/pluto.ctl"
+
+[ "$ACTION" = "ifup" -a "$INTERFACE" = "wan" ] || exit
+
+[ -e "$CTLFILE" ] || exit
+
+/etc/init.d/ipsec restart