binutils: add a separate package for objdump (useful for oprofile), remove dependency...
[openwrt/svn-archive/archive.git] / utils / oprofile / patches / 10-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