[packages] strongswan: upgrade to 5.0.4
[openwrt/svn-archive/archive.git] / net / strongswan / patches / 201-no-modprobe.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("insmod -qv af_key"));
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("insmod -qv ah4"));
22 + ignore_result(system("insmod -qv esp4"));
23 + ignore_result(system("insmod -qv ipcomp"));
24 + ignore_result(system("insmod -qv xfrm4_tunnel"));
25 + ignore_result(system("insmod -qv xfrm_user"));
26 }
27
28 DBG2(DBG_APP, "found netkey IPsec stack");