[packages] add strongswan4 (closes: #2538)
[openwrt/svn-archive/archive.git] / net / strongswan4 / patches / 201-no-modprobe.patch
1 --- a/src/starter/netkey.c
2 +++ b/src/starter/netkey.c
3 @@ -34,7 +34,7 @@ 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 @@ -50,11 +50,11 @@ 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 DBG(DBG_CONTROL,