diff options
Diffstat (limited to 'packages/mdev/mdev-1.2.1/mdevfirmware.patch')
-rw-r--r-- | packages/mdev/mdev-1.2.1/mdevfirmware.patch | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/packages/mdev/mdev-1.2.1/mdevfirmware.patch b/packages/mdev/mdev-1.2.1/mdevfirmware.patch deleted file mode 100644 index 8dae2a9921..0000000000 --- a/packages/mdev/mdev-1.2.1/mdevfirmware.patch +++ /dev/null @@ -1,20 +0,0 @@ ---- busybox-1.2.1/util-linux/mdev.c.orig 2006-07-01 00:42:13.000000000 +0200 -+++ busybox-1.2.1/util-linux/mdev.c 2006-09-26 17:42:38.414162744 +0200 -@@ -255,7 +255,16 @@ - bb_show_usage(); - - sprintf(temp, "/sys%s", env_path); -- if (!strcmp(action, "add")) make_device(temp,0); -+ if (!strcmp(action, "add")) { -+ struct stat st; -+ make_device(temp,0); -+ sprintf(temp, "/lib/mdev/%s", getenv("SUBSYSTEM")); -+ if (stat(temp, &st) == 0) { -+ if ((st.st_mode & S_IXUSR) && S_ISREG(st.st_mode)) { -+ system(temp); -+ } -+ } -+ } - else if (!strcmp(action, "remove")) make_device(temp,1); - } - |