[package] fix oprofile compilation failure, remove 2.4 support (#5281)
[openwrt/svn-archive/archive.git] / devel / oprofile / patches / 100-use_insmod_instead_of_modprobe.patch
1 diff --git a/utils/opcontrol b/utils/opcontrol
2 index ce53010..60a7e64 100644
3 --- a/utils/opcontrol
4 +++ b/utils/opcontrol
5 @@ -170,7 +170,7 @@ load_module_26()
6 {
7 grep oprofilefs /proc/filesystems >/dev/null
8 if test "$?" -ne 0; then
9 - modprobe oprofile
10 + insmod oprofile
11 if test "$?" != "0"; then
12 # couldn't load the module
13 return
14 @@ -200,7 +200,7 @@ load_module_24()
15 {
16 grep oprof /proc/devices >/dev/null
17 if test "$?" -ne 0; then
18 - modprobe oprofile
19 + insmod oprofile
20 if test "$?" != "0"; then
21 # couldn't load a module
22 return