diff options
author | Marcin Juszkiewicz <hrw@openedhand.com> | 2008-03-03 17:39:29 +0000 |
---|---|---|
committer | Marcin Juszkiewicz <hrw@openedhand.com> | 2008-03-03 17:39:29 +0000 |
commit | 6314103003cef434c29d2133769195daf5cc9309 (patch) | |
tree | 9c450c156ce82a0a424d5654790def0e895a4707 /meta/packages/busybox/busybox-1.01/rmmod.patch | |
parent | 9f9900b9b4ef2d2e855293f7850f81fa0f33a616 (diff) | |
download | openembedded-core-6314103003cef434c29d2133769195daf5cc9309.tar.gz openembedded-core-6314103003cef434c29d2133769195daf5cc9309.tar.bz2 openembedded-core-6314103003cef434c29d2133769195daf5cc9309.tar.xz openembedded-core-6314103003cef434c29d2133769195daf5cc9309.zip |
busybox: drop 1.01, make 1.8.2 default
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3888 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/busybox/busybox-1.01/rmmod.patch')
-rw-r--r-- | meta/packages/busybox/busybox-1.01/rmmod.patch | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/meta/packages/busybox/busybox-1.01/rmmod.patch b/meta/packages/busybox/busybox-1.01/rmmod.patch deleted file mode 100644 index 5a557ef35..000000000 --- a/meta/packages/busybox/busybox-1.01/rmmod.patch +++ /dev/null @@ -1,44 +0,0 @@ -Index: modutils/rmmod.c -=================================================================== -RCS file: /var/cvs/busybox/modutils/rmmod.c,v -retrieving revision 1.31 -diff -u -r1.31 rmmod.c ---- busybox/modutils/rmmod.c 20 Jul 2004 18:36:51 -0000 1.31 -+++ busybox/modutils/rmmod.c 10 Dec 2004 22:56:36 -0000 -@@ -28,6 +28,7 @@ - #include <fcntl.h> - #include <string.h> - #include <sys/syscall.h> -+#include <sys/utsname.h> - #include "busybox.h" - - #ifdef CONFIG_FEATURE_2_6_MODULES -@@ -63,6 +64,16 @@ - void *buf; /* hold the module names which we ignore but must get */ - size_t bufsize = 0; - #endif -+#ifdef CONFIG_FEATURE_2_6_MODULES -+ int k_version = 0; -+ struct utsname myuname; -+ -+ if (uname(&myuname) == 0) { -+ if (myuname.release[0] == '2') { -+ k_version = myuname.release[2] - '0'; -+ } -+ } -+#endif - - /* Parse command line. */ - while ((n = getopt(argc, argv, "a")) != EOF) { -@@ -109,7 +120,10 @@ - for (n = optind; n < argc; n++) { - #ifdef CONFIG_FEATURE_2_6_MODULES - char module_name[strlen(argv[n]) + 1]; -- filename2modname(module_name, argv[n]); -+ if (k_version != 4) -+ filename2modname(module_name, argv[n]); -+ else -+ strcpy(module_name, argv[n]); - #else - #define module_name argv[n] - #endif |