mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-19 11:44:39 +02:00
b5cb1795de
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7490 3c298f89-4303-0410-b956-a3cf2f4a3e73
109 lines
3.2 KiB
Diff
109 lines
3.2 KiB
Diff
Index: strongswan-2.8.2/programs/starter/klips.c
|
|
===================================================================
|
|
--- strongswan-2.8.2.orig/programs/starter/klips.c 2007-06-04 13:23:04.544043096 +0200
|
|
+++ strongswan-2.8.2/programs/starter/klips.c 2007-06-04 13:23:07.238633456 +0200
|
|
@@ -44,7 +44,7 @@
|
|
unsetenv("MODPATH");
|
|
unsetenv("MODULECONF");
|
|
system("depmod -a >/dev/null 2>&1");
|
|
- system("modprobe -qv ipsec");
|
|
+ system("insmod -qv ipsec");
|
|
}
|
|
if (stat(PROC_IPSECVERSION, &stb) == 0)
|
|
{
|
|
@@ -62,11 +62,11 @@
|
|
/* make sure that all available crypto algorithms are loaded */
|
|
if (stat(PROC_MODULES, &stb) == 0)
|
|
{
|
|
- system("modprobe -qv ipsec_aes");
|
|
- system("modprobe -qv ipsec_serpent");
|
|
- system("modprobe -qv ipsec_twofish");
|
|
- system("modprobe -qv ipsec_blowfish");
|
|
- system("modprobe -qv ipsec_sha2");
|
|
+ system("insmod -qv ipsec_aes");
|
|
+ system("insmod -qv ipsec_serpent");
|
|
+ system("insmod -qv ipsec_twofish");
|
|
+ system("insmod -qv ipsec_blowfish");
|
|
+ system("insmod -qv ipsec_sha2");
|
|
}
|
|
|
|
starter_klips_clear();
|
|
Index: strongswan-2.8.2/programs/starter/netkey.c
|
|
===================================================================
|
|
--- strongswan-2.8.2.orig/programs/starter/netkey.c 2007-06-04 13:23:04.551042032 +0200
|
|
+++ strongswan-2.8.2/programs/starter/netkey.c 2007-06-04 13:23:07.238633456 +0200
|
|
@@ -36,7 +36,7 @@
|
|
/* af_key module makes the netkey proc interface visible */
|
|
if (stat(PROC_MODULES, &stb) == 0)
|
|
{
|
|
- system("modprobe -qv af_key");
|
|
+ system("insmod -qv af_key");
|
|
}
|
|
|
|
/* now test again */
|
|
@@ -52,11 +52,11 @@
|
|
/* make sure that all required IPsec modules are loaded */
|
|
if (stat(PROC_MODULES, &stb) == 0)
|
|
{
|
|
- system("modprobe -qv ah4");
|
|
- system("modprobe -qv esp4");
|
|
- system("modprobe -qv ipcomp");
|
|
- system("modprobe -qv xfrm4_tunnel");
|
|
- system("modprobe -qv xfrm_user");
|
|
+ system("insmod -qv ah4");
|
|
+ system("insmod -qv esp4");
|
|
+ system("insmod -qv ipcomp");
|
|
+ system("insmod -qv xfrm4_tunnel");
|
|
+ system("insmod -qv xfrm_user");
|
|
}
|
|
|
|
DBG(DBG_CONTROL,
|
|
Index: strongswan-2.8.2/programs/_startklips/_startklips.in
|
|
===================================================================
|
|
--- strongswan-2.8.2.orig/programs/_startklips/_startklips.in 2007-06-04 13:23:04.560040664 +0200
|
|
+++ strongswan-2.8.2/programs/_startklips/_startklips.in 2007-06-04 13:23:07.238633456 +0200
|
|
@@ -249,7 +249,7 @@
|
|
|
|
if test ! -f $ipsecversion && test ! -f $netkey
|
|
then
|
|
- modprobe -v af_key
|
|
+ insmod -v af_key
|
|
fi
|
|
|
|
if test -f $netkey
|
|
@@ -257,11 +257,11 @@
|
|
klips=false
|
|
if test -f $modules
|
|
then
|
|
- modprobe -qv ah4
|
|
- modprobe -qv esp4
|
|
- modprobe -qv ipcomp
|
|
- modprobe -qv xfrm4_tunnel
|
|
- modprobe -qv xfrm_user
|
|
+ insmod -qv ah4
|
|
+ insmod -qv esp4
|
|
+ insmod -qv ipcomp
|
|
+ insmod -qv xfrm4_tunnel
|
|
+ insmod -qv xfrm_user
|
|
fi
|
|
fi
|
|
|
|
@@ -272,7 +272,7 @@
|
|
setmodule
|
|
unset MODPATH MODULECONF # no user overrides!
|
|
depmod -a >/dev/null 2>&1
|
|
- modprobe -v ipsec
|
|
+ insmod -v ipsec
|
|
fi
|
|
if test ! -f $ipsecversion
|
|
then
|
|
@@ -288,7 +288,7 @@
|
|
do
|
|
if test -f $moduleinstplace/alg/ipsec_$alg.o
|
|
then
|
|
- modprobe ipsec_$alg
|
|
+ insmod ipsec_$alg
|
|
fi
|
|
done
|
|
fi
|