hotplug2: add a missing cflag, allow hotplug events that are not 'add'
[openwrt-10.03/.git] / package / hotplug2 / patches / 120-action_types.patch
1 Index: hotplug2-0.9/hotplug2.c
2 ===================================================================
3 --- hotplug2-0.9.orig/hotplug2.c        2007-06-25 09:07:07.038012616 +0200
4 +++ hotplug2-0.9/hotplug2.c     2007-06-25 09:07:19.420130248 +0200
5 @@ -555,7 +555,7 @@
6                 if (cur_seqnum > highest_seqnum)
7                         highest_seqnum = cur_seqnum;
8                 
9 -               if (tmpevent->action == ACTION_ADD && (!dumb || modalias != NULL)) {
10 +               if (!dumb || modalias != NULL) {
11                         /* 
12                          * We have more children than we want. Wait until SIGCHLD handler reduces
13                          * their numbers.