201-kmodloader.patch 1.1 KB

12345678910111213141516171819202122232425262728
  1. --- a/src/starter/netkey.c
  2. +++ b/src/starter/netkey.c
  3. @@ -30,7 +30,7 @@ bool starter_netkey_init(void)
  4. /* af_key module makes the netkey proc interface visible */
  5. if (stat(PROC_MODULES, &stb) == 0)
  6. {
  7. - ignore_result(system("modprobe -qv af_key"));
  8. + ignore_result(system("modprobe af_key 2>&1 >/dev/null"));
  9. }
  10. /* now test again */
  11. @@ -44,11 +44,11 @@ bool starter_netkey_init(void)
  12. /* make sure that all required IPsec modules are loaded */
  13. if (stat(PROC_MODULES, &stb) == 0)
  14. {
  15. - ignore_result(system("modprobe -qv ah4"));
  16. - ignore_result(system("modprobe -qv esp4"));
  17. - ignore_result(system("modprobe -qv ipcomp"));
  18. - ignore_result(system("modprobe -qv xfrm4_tunnel"));
  19. - ignore_result(system("modprobe -qv xfrm_user"));
  20. + ignore_result(system("modprobe ah4 2>&1 >/dev/null"));
  21. + ignore_result(system("modprobe esp4 2>&1 >/dev/null"));
  22. + ignore_result(system("modprobe ipcomp 2>&1 >/dev/null"));
  23. + ignore_result(system("modprobe xfrm4_tunnel 2>&1 >/dev/null"));
  24. + ignore_result(system("modprobe xfrm_user 2>&1 >/dev/null"));
  25. }
  26. DBG2(DBG_APP, "found netkey IPsec stack");