aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-06-25 07:08:35 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-06-25 07:08:35 +0000
commita99b79e9ad865990e0a6c438cfbb8adc88ccf6a0 (patch)
treeac873e80072d7dc79c5de57f036bdd55b574b900 /package
parentd309c4fa3030ae3a3df5beb28f02ce81a47dd4d0 (diff)
downloadupstream-a99b79e9ad865990e0a6c438cfbb8adc88ccf6a0.tar.gz
upstream-a99b79e9ad865990e0a6c438cfbb8adc88ccf6a0.tar.bz2
upstream-a99b79e9ad865990e0a6c438cfbb8adc88ccf6a0.zip
hotplug2: add a missing cflag, allow hotplug events that are not 'add'
SVN-Revision: 7721
Diffstat (limited to 'package')
-rw-r--r--package/hotplug2/Makefile2
-rw-r--r--package/hotplug2/patches/120-action_types.patch13
2 files changed, 14 insertions, 1 deletions
diff --git a/package/hotplug2/Makefile b/package/hotplug2/Makefile
index bf7c8c6b09..c696f09f5b 100644
--- a/package/hotplug2/Makefile
+++ b/package/hotplug2/Makefile
@@ -29,7 +29,7 @@ define Package/hotplug2/description
Hotplug2 is a trivial replacement of some of the UDev functionality
in a tiny pack, intended for Linux early userspace: Init RAM FS and InitRD.
endef
-MAKE_FLAGS += CFLAGS="$(TARGET_CFLAGS)"
+MAKE_FLAGS += CFLAGS="$(TARGET_CFLAGS) -DHAVE_RULES"
define Package/hotplug2/install
$(INSTALL_DIR) $(1)/etc
diff --git a/package/hotplug2/patches/120-action_types.patch b/package/hotplug2/patches/120-action_types.patch
new file mode 100644
index 0000000000..c81b241b7a
--- /dev/null
+++ b/package/hotplug2/patches/120-action_types.patch
@@ -0,0 +1,13 @@
+Index: hotplug2-0.9/hotplug2.c
+===================================================================
+--- hotplug2-0.9.orig/hotplug2.c 2007-06-25 09:07:07.038012616 +0200
++++ hotplug2-0.9/hotplug2.c 2007-06-25 09:07:19.420130248 +0200
+@@ -555,7 +555,7 @@
+ if (cur_seqnum > highest_seqnum)
+ highest_seqnum = cur_seqnum;
+
+- if (tmpevent->action == ACTION_ADD && (!dumb || modalias != NULL)) {
++ if (!dumb || modalias != NULL) {
+ /*
+ * We have more children than we want. Wait until SIGCHLD handler reduces
+ * their numbers.