projects
/
openwrt-10.03
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add strongswan (#1330)
[openwrt-10.03/.git]
/
package
/
strongswan
/
files
/
ipsec.iface
diff --git a/package/strongswan/files/ipsec.iface
b/package/strongswan/files/ipsec.iface
new file mode 100644
(file)
index 0000000..
95e0958
--- /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