Commit graph

42 commits

Author SHA1 Message Date
Vasilis Tsiligiannis
41f375e837 hotplug2: Cancel firmware loading on file openning errors
SVN-Revision: 20680
2010-04-03 18:09:09 +00:00
Vasilis Tsiligiannis
d234536a34 hotplug2: Fix sysfs path (#7031)
SVN-Revision: 20679
2010-04-03 18:09:04 +00:00
Gabor Juhos
3b57cccb71 package/hotplug2: refresh patches
SVN-Revision: 20462
2010-03-26 14:28:25 +00:00
Felix Fietkau
679cab88fe Fix a memory leak in hotplug2 environment handling. Bump hotplug2 to the latest svn revision, remove obsolete patches.
Memory leak is caused by the way hotplug2 handles environment variables,
using setenv() and unsetenv(). setenv() creates copies of the supplied
strings, but, due to a POSIX blunder, these copies are never destroyed
by unsetenv(), neither in glibc nor uclibc - not until the program
terminates.

Since some events are handled directly in the main process, even when
configured with the "fork" worker, hotplug2 memory usage will keep
growing over time. This can be observed by running "udevtrigger" and
noting the increase in hotplug2 VmRSS after each run.

This patch uses putenv() instead, which leaves storage management to
the caller, so that we can explicitly delete stuff when it's no longer
needed.

Signed-off-by: Aleksandar Radovanovic <biblbroks@sezampro.rs>

SVN-Revision: 18725
2009-12-09 18:50:49 +00:00
Felix Fietkau
73723393f9 hotplug2: get rid of the unnecessary reference to libdl as well
SVN-Revision: 18106
2009-10-20 20:59:40 +00:00
Felix Fietkau
ebb1151032 hotplug2: compile in the worker module statically, saves >20k uncompressed
SVN-Revision: 18104
2009-10-20 20:49:44 +00:00
Felix Fietkau
47ba8235cd hotplug2: fix "MALLOC FAILURE!" message caused by a missing return code check on recv()
SVN-Revision: 18061
2009-10-19 02:39:02 +00:00
Florian Fainelli
e8727498cb update hotplug2 to r199, fixes build failures on brcm-2.4
SVN-Revision: 17508
2009-09-03 18:33:52 +00:00
Jo-Philipp Wich
12c997d9ec hotplug2 may need -fPIC
SVN-Revision: 16199
2009-05-29 23:11:29 +00:00
Hamish Guthrie
0c5d5b0e9b added back atm rule
SVN-Revision: 16137
2009-05-28 13:31:30 +00:00
Hamish Guthrie
b38b823afb add hotplug2 v1.0
SVN-Revision: 16136
2009-05-28 13:21:58 +00:00
Hamish Guthrie
5513f6a9e9 Move hotplug2 v0.9 to hotplug2-old
SVN-Revision: 16135
2009-05-28 13:20:54 +00:00
Florian Fainelli
ae7afb7cdb allow hotplug events to be triggered with the atm subsystem (#2996)
SVN-Revision: 16073
2009-05-26 09:30:45 +00:00
Felix Fietkau
34939cad39 get rid of $Id$ - it has never helped us and it has broken too many patches ;)
SVN-Revision: 15242
2009-04-17 14:09:46 +00:00
Jose Vasconcellos
58b8cdb5fd Use block events for the mounting/unmounting of external storage devices. This handles both USB and IEEE1394 devices. It removes /sbin/usb-storage in favor of using the block hotplug event. There are dummy scripts to handle the plug in/out of USB and IEEE1394 devices for updating LEDs. Storage devices are mount as a sub-directory under /mnt.
SVN-Revision: 14289
2009-01-30 20:48:42 +00:00
Gabor Juhos
ec34d908c7 hotplug2: add platform hotplugging
SVN-Revision: 14248
2009-01-28 20:01:11 +00:00
John Crispin
863afccae8 remove warning from hotplug2, which pops up 10 times during boot
SVN-Revision: 12086
2008-08-04 08:04:16 +00:00
Felix Fietkau
c5ecc1790a fix hotplug2 event processing deadlock
when bringing up ethernet on ixp4xx, the driver may request
a firmware while hotplug2 waits for the netdev bringup to complete.
change the event processing loop to keep an event backlog to allow
unthrottled events to pass through while throttled events are being waited for

SVN-Revision: 12019
2008-07-30 19:02:01 +00:00
Nicolas Thill
8231561bce move hotplug2 & udevtrigger to base section
SVN-Revision: 10910
2008-04-21 22:31:07 +00:00
Felix Fietkau
9b27c5b585 refactor hotplug2 rules, make sure that the default button rule is only used during the init (should fix #2772)
SVN-Revision: 9644
2007-12-01 17:08:04 +00:00
Felix Fietkau
4db9556f99 bump package versions after updates
SVN-Revision: 8680
2007-09-07 20:41:57 +00:00
Nicolas Thill
34bb4638e7 move package description to a separate definition, remove it when DESCRIPTION=TITLE
SVN-Revision: 8659
2007-09-07 08:34:51 +00:00
John Crispin
18a03ce770 reduce watchdog trigger from 10 to 5 seconds
SVN-Revision: 8571
2007-09-01 21:01:09 +00:00
Felix Fietkau
50d052a1eb add watchdog start patch from #1967
SVN-Revision: 8117
2007-07-23 02:51:42 +00:00
Felix Fietkau
fd5595ed5c fix two small bugs in the hotplug2 rule parser (#2085)
SVN-Revision: 8023
2007-07-18 07:23:40 +00:00
Felix Fietkau
c50816d093 move firmware loading to hotplug2-init.rules (should fix #2056)
SVN-Revision: 7955
2007-07-13 02:32:32 +00:00
Felix Fietkau
0e387805fb hotplug2 update - include hotplug2-init.rules from hotplug2.rules, fix permissions of various devices (fixes #2052)
SVN-Revision: 7892
2007-07-09 00:13:47 +00:00
Felix Fietkau
c09dc20f2c replace the hotplug2 fork handling hack with a better solution implemented in upstream (thanks, iSteve)
SVN-Revision: 7786
2007-06-30 11:05:14 +00:00
Felix Fietkau
13f087cd5a hotplug2: add fork handling optimization (also fixes that pesky pppoe race condition in #1655)
SVN-Revision: 7726
2007-06-25 09:47:58 +00:00
Felix Fietkau
05c0ca34a7 update to hotplug2 svn version (recommended by iSteve)
SVN-Revision: 7725
2007-06-25 09:46:37 +00:00
Felix Fietkau
8c41e51e92 fix failsafe on broadcom, send netlink events in diag when running linux 2.6
SVN-Revision: 7722
2007-06-25 08:32:25 +00:00
Felix Fietkau
a99b79e9ad hotplug2: add a missing cflag, allow hotplug events that are not 'add'
SVN-Revision: 7721
2007-06-25 07:08:35 +00:00
Felix Fietkau
d309c4fa30 make hotplug2 use the build system cflags
SVN-Revision: 7720
2007-06-25 06:30:36 +00:00
John Crispin
2fe37ccdf6 added usb-storage hotpluging
SVN-Revision: 7684
2007-06-20 22:05:15 +00:00
Felix Fietkau
9114220553 refresh all package patches in the buildroot using quilt
SVN-Revision: 7490
2007-06-04 11:25:53 +00:00
Florian Fainelli
5015ad650c Fix alsa-lib on 2.6 kernels, add an hotplug rule to populate /dev with the sound peripherals (#1677)
SVN-Revision: 7246
2007-05-15 08:20:31 +00:00
Felix Fietkau
9f388f84ce fix firmware loading
SVN-Revision: 7115
2007-05-06 16:03:38 +00:00
Felix Fietkau
ca7a815602 use hotplug2 for serializing hotplug events on 2.6
SVN-Revision: 7097
2007-05-05 18:33:18 +00:00
Felix Fietkau
24faf55360 add file type autodetection for the unpack command and nuke PKG_CAT:= in lots of places
SVN-Revision: 6582
2007-03-16 20:21:39 +00:00
Felix Fietkau
1d307eea87 add a default for PKG_BUILD_DIR and PKG_INSTALL_DIR (will use KERNEL_BUILD_DIR if kernel.mk is included, BUILD_DIR otherwise)
SVN-Revision: 6580
2007-03-16 19:18:55 +00:00
Felix Fietkau
0a056c9743 make hotplug2 depend on udevtrigger
SVN-Revision: 6511
2007-03-04 20:15:32 +00:00
Felix Fietkau
481ad825af add hotplug2
SVN-Revision: 6510
2007-03-04 19:55:47 +00:00