diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-06-25 09:46:37 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-06-25 09:46:37 +0000 |
commit | 05c0ca34a722cc87ef1519fd36c82acd8022a7c8 (patch) | |
tree | 056380b2c4462bb03685f4ef3fbac584433fb067 /package/hotplug2/patches/100-rules_override.patch | |
parent | 8aa6978a4377b79f8e9e4cd29bfbcd868af593bc (diff) | |
download | upstream-05c0ca34a722cc87ef1519fd36c82acd8022a7c8.tar.gz upstream-05c0ca34a722cc87ef1519fd36c82acd8022a7c8.tar.bz2 upstream-05c0ca34a722cc87ef1519fd36c82acd8022a7c8.zip |
update to hotplug2 svn version (recommended by iSteve)
SVN-Revision: 7725
Diffstat (limited to 'package/hotplug2/patches/100-rules_override.patch')
-rw-r--r-- | package/hotplug2/patches/100-rules_override.patch | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/package/hotplug2/patches/100-rules_override.patch b/package/hotplug2/patches/100-rules_override.patch deleted file mode 100644 index 55b2aaacc9..0000000000 --- a/package/hotplug2/patches/100-rules_override.patch +++ /dev/null @@ -1,35 +0,0 @@ -Index: hotplug2-0.9/hotplug2.c -=================================================================== ---- hotplug2-0.9.orig/hotplug2.c 2007-06-04 13:21:41.134723240 +0200 -+++ hotplug2-0.9/hotplug2.c 2007-06-04 13:21:41.203712752 +0200 -@@ -391,6 +391,7 @@ - int rv = 0; - int i; - char *coldplug_command = NULL; -+ char *rules_file = HOTPLUG2_RULE_PATH; - sigset_t block_mask; - - struct rules_t *rules = NULL; -@@ -435,6 +436,13 @@ - break; - - modprobe_command = *argv; -+ } else if (!strcmp(*argv, "--set-rules-file")) { -+ argv++; -+ argc--; -+ if (argc <= 0) -+ break; -+ -+ rules_file = *argv; - } - } - } -@@ -443,7 +451,7 @@ - #ifdef HAVE_RULES - if (!dumb) { - filemap = MAP_FAILED; -- rule_fd = open(HOTPLUG2_RULE_PATH, O_RDONLY | O_NOATIME); -+ rule_fd = open(rules_file, O_RDONLY | O_NOATIME); - if (rule_fd == -1) { - dumb = 1; - ERROR("rules parse","Unable to open rules file: %s.", strerror(errno)); |