[package] fix oprofile compilation failure, remove 2.4 support (#5281)

git-svn-id: svn://svn.openwrt.org/openwrt/packages@17015 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
florian
2009-07-26 13:28:37 +00:00
parent b2e37caddb
commit bc44f633e1
3 changed files with 68 additions and 1 deletions

View File

@ -0,0 +1,22 @@
diff --git a/utils/opcontrol b/utils/opcontrol
index ce53010..60a7e64 100644
--- a/utils/opcontrol
+++ b/utils/opcontrol
@@ -170,7 +170,7 @@ load_module_26()
{
grep oprofilefs /proc/filesystems >/dev/null
if test "$?" -ne 0; then
- modprobe oprofile
+ insmod oprofile
if test "$?" != "0"; then
# couldn't load the module
return
@@ -200,7 +200,7 @@ load_module_24()
{
grep oprof /proc/devices >/dev/null
if test "$?" -ne 0; then
- modprobe oprofile
+ insmod oprofile
if test "$?" != "0"; then
# couldn't load a module
return