[packages] strongswan: upgrade to 5.1.1
[packages.git] / net / strongswan / patches / 201-kmodloader.patch
1 --- a/src/starter/netkey.c
2 +++ b/src/starter/netkey.c
3 @@ -31,7 +31,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  
11                 /* now test again */
12 @@ -45,11 +45,11 @@ bool starter_netkey_init(void)
13         /* make sure that all required IPsec modules are loaded */
14         if (stat(PROC_MODULES, &stb) == 0)
15         {
16 -               ignore_result(system("modprobe -qv ah4"));
17 -               ignore_result(system("modprobe -qv esp4"));
18 -               ignore_result(system("modprobe -qv ipcomp"));
19 -               ignore_result(system("modprobe -qv xfrm4_tunnel"));
20 -               ignore_result(system("modprobe -qv xfrm_user"));
21 +               ignore_result(system("modprobe ah4 2>&1 >/dev/null"));
22 +               ignore_result(system("modprobe esp4 2>&1 >/dev/null"));
23 +               ignore_result(system("modprobe ipcomp 2>&1 >/dev/null"));
24 +               ignore_result(system("modprobe xfrm4_tunnel 2>&1 >/dev/null"));
25 +               ignore_result(system("modprobe xfrm_user 2>&1 >/dev/null"));
26         }
27  
28         DBG2(DBG_APP, "found netkey IPsec stack");