patch-programs__realsetup__realsetup_in 1.1 KB

1234567891011121314151617181920212223242526
  1. --- openswan-2.6.27.orig/programs/_realsetup/_realsetup.in 2010-06-21 17:43:35.000000000 +0200
  2. +++ openswan-2.6.27/programs/_realsetup/_realsetup.in 2010-07-27 19:27:30.327023350 +0200
  3. @@ -374,14 +374,15 @@ case "$1" in
  4. rm -f /var/run/pluto.pid
  5. # When we exit we clean up (remove) the modules we are using, even the kame'ish ones
  6. - if test -e ${kamepfkey}; then
  7. - for mod in ipcomp ipcomp6 xfrm6_tunnel xfrm6_mode_tunnel xfrm6_mode_beet xfrm6_mode_ro \
  8. - xfrm6_mode_transport xfrm4_mode_transport xfrm4_mode_tunnel xfrm_user \
  9. - xfrm4_tunnel xfrm4_mode_beet esp4 esp6 ah4 ah6 af_key
  10. - do
  11. - lsmod 2>&1 | grep "^$mod" > /dev/null && rmmod $mod
  12. - done
  13. - fi
  14. + # do not touch kernel modules, no reason to unload on embedded systems
  15. + #if test -e ${kamepfkey}; then
  16. + # for mod in ipcomp ipcomp6 xfrm6_tunnel xfrm6_mode_tunnel xfrm6_mode_beet xfrm6_mode_ro \
  17. + # xfrm6_mode_transport xfrm4_mode_transport xfrm4_mode_tunnel xfrm_user \
  18. + # xfrm4_tunnel xfrm4_mode_beet esp4 esp6 ah4 ah6 af_key
  19. + # do
  20. + # lsmod 2>&1 | grep "^$mod" > /dev/null && rmmod $mod
  21. + # done
  22. + #fi
  23. perform test -d $subsysdir "&&" rm -f $subsyslock