1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-11-18 22:43:53 +01:00

hotplug2: add a missing cflag, allow hotplug events that are not 'add'

SVN-Revision: 7721
This commit is contained in:
Felix Fietkau 2007-06-25 07:08:35 +00:00
parent d309c4fa30
commit a99b79e9ad
2 changed files with 14 additions and 1 deletions

@ -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

@ -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.