summaryrefslogtreecommitdiff
path: root/package/openswan/patches/patch-programs__realsetup__realsetup_in
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-07-27 23:26:20 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2010-07-27 23:26:20 +0200
commit1b8fff1f57e80538623d46bba5ea2577b9c0f406 (patch)
tree47951165731114775e2ef87f8459bdebbc3c8766 /package/openswan/patches/patch-programs__realsetup__realsetup_in
parentf03f1d5071caf61c33815b732cef46952324ce6e (diff)
test and fix openswan package.
enable needed kernel modules, disable removing of any kernel modules on restart.
Diffstat (limited to 'package/openswan/patches/patch-programs__realsetup__realsetup_in')
-rw-r--r--package/openswan/patches/patch-programs__realsetup__realsetup_in26
1 files changed, 26 insertions, 0 deletions
diff --git a/package/openswan/patches/patch-programs__realsetup__realsetup_in b/package/openswan/patches/patch-programs__realsetup__realsetup_in
new file mode 100644
index 000000000..7d4db9881
--- /dev/null
+++ b/package/openswan/patches/patch-programs__realsetup__realsetup_in
@@ -0,0 +1,26 @@
+--- openswan-2.6.27.orig/programs/_realsetup/_realsetup.in 2010-06-21 17:43:35.000000000 +0200
++++ openswan-2.6.27/programs/_realsetup/_realsetup.in 2010-07-27 19:27:30.327023350 +0200
+@@ -374,14 +374,15 @@ case "$1" in
+ rm -f /var/run/pluto.pid
+
+ # When we exit we clean up (remove) the modules we are using, even the kame'ish ones
+- if test -e ${kamepfkey}; then
+- for mod in ipcomp ipcomp6 xfrm6_tunnel xfrm6_mode_tunnel xfrm6_mode_beet xfrm6_mode_ro \
+- xfrm6_mode_transport xfrm4_mode_transport xfrm4_mode_tunnel xfrm_user \
+- xfrm4_tunnel xfrm4_mode_beet esp4 esp6 ah4 ah6 af_key
+- do
+- lsmod 2>&1 | grep "^$mod" > /dev/null && rmmod $mod
+- done
+- fi
++ # do not touch kernel modules, no reason to unload on embedded systems
++ #if test -e ${kamepfkey}; then
++ # for mod in ipcomp ipcomp6 xfrm6_tunnel xfrm6_mode_tunnel xfrm6_mode_beet xfrm6_mode_ro \
++ # xfrm6_mode_transport xfrm4_mode_transport xfrm4_mode_tunnel xfrm_user \
++ # xfrm4_tunnel xfrm4_mode_beet esp4 esp6 ah4 ah6 af_key
++ # do
++ # lsmod 2>&1 | grep "^$mod" > /dev/null && rmmod $mod
++ # done
++ #fi
+
+ perform test -d $subsysdir "&&" rm -f $subsyslock
+