Commit Graph

61 Commits (4d44b3ca0866f36237bc998ee09aec0eb0af4693)

Author SHA1 Message Date
Felix Fietkau d93f90e54c base-files: process platform hotplug calls in the early launch of hotplug2 to avoid having crda calls get stuck at boot time (fixes #10350, #10354)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28768 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-05 17:16:01 +00:00
Jo-Philipp Wich ad0af97fc1 [package] hotplug2: make libbsd depend on "not uclibc" for now, the conditional depdendency handling needs fixes
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27266 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-06-23 18:49:24 +00:00
Mirko Vogt 5de173d634 [package/hotplug2] fix conditional dependencies to libbsd
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27265 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-06-23 14:38:29 +00:00
Mirko Vogt 1119b22e57 [package/hotplug2] link against 'libbsd' when using glibc
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27209 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-06-17 22:51:20 +00:00
Mirko Vogt 87ba485e6d [package/hotplug] link hotplug2 against libbsd when eglibc is used
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27170 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-06-13 13:16:11 +00:00
Jo-Philipp Wich b66b6fc687 [package] hotplug2: introduce tty subsystem events (#9211)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26807 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-05-03 19:35:58 +00:00
Daniel Dickinson a1233fbde7 [package] hotplug2: Added zaptel subsystem to /etc/hotplugs2.rules so that the zaptel kernel module package only needs to had a script to create the correct device nodes (default names differ from what all apps that use zaptel actually use, so a script is necessary).
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26253 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-03-21 05:53:17 +00:00
Felix Fietkau 101ccb2940 hotplug2: replace udevtrigger from the udev-106 source with a much smaller self-contained, stripped-down version
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25920 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-03-07 02:49:24 +00:00
Michael Büsch 8c9cc0b566 hotplug2: Only ignore failed includes for missing files
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25421 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-02-08 17:23:37 +00:00
Vasilis Tsiligiannis c587116c29 [package] hotplug2: Make missing include files non fatal
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25414 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-02-07 22:28:04 +00:00
Vasilis Tsiligiannis 202a7b3712 [package] hotplug2: Use stricter matching for rule regular expressions
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25282 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-02-01 16:37:53 +00:00
Jo-Philipp Wich ad1f4fa94d [PATCH] add input subsystem to hotplug rules
This patch adds the input subsystem to the hotplug rules, making it possible to
react on the addition of input devices (e.g. USB numpads).

Signed-off-by: Stefan Tomanek <stefan.tomanek+openwrt@wertarbyte.de>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23994 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-11-14 22:00:10 +00:00
Florian Fainelli a4a8c8116f [package] hotplug2 depends on udevtrigger
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23646 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-10-26 21:29:06 +00:00
Jo-Philipp Wich 1619fc6917 [package] hotplug2: mark /etc/hotplug2.rules as conffile
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23249 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-10-05 17:16:12 +00:00
Jo-Philipp Wich 63d74b179a [package] hotplug2: bump pkg release after hotplug fixes in r20679-r20685
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21422 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-05-10 19:33:56 +00:00
Vasilis Tsiligiannis 97f8380385 [package] hotplug2: Refresh patches
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20685 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-03 18:29:37 +00:00
Vasilis Tsiligiannis d03a4c5d8c [package] hotplug2: Fix event blocking when there are no available children (#6958, #7030)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20684 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-03 18:29:32 +00:00
Vasilis Tsiligiannis b6a5e28a76 [package] hotplug2: Always fork rules flagged as slow
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20682 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-03 18:15:42 +00:00
Vasilis Tsiligiannis 5b5b531c57 [package] hotplug2: Fix forking (#7033)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20681 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-03 18:09:14 +00:00
Vasilis Tsiligiannis 77a1b5673c [package] hotplug2: Cancel firmware loading on file openning errors
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20680 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-03 18:09:09 +00:00
Vasilis Tsiligiannis 4b03e12f5c [package] hotplug2: Fix sysfs path (#7031)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20679 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-03 18:09:04 +00:00
Gabor Juhos 6189513013 package/hotplug2: refresh patches
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20462 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-26 14:28:25 +00:00
Felix Fietkau 2ee3482123 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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18725 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-09 18:50:49 +00:00
Felix Fietkau 3c635449d3 hotplug2: get rid of the unnecessary reference to libdl as well
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18106 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-10-20 20:59:40 +00:00
Felix Fietkau 7a230fb6be hotplug2: compile in the worker module statically, saves >20k uncompressed
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18104 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-10-20 20:49:44 +00:00
Felix Fietkau 15551bacbf hotplug2: fix "MALLOC FAILURE!" message caused by a missing return code check on recv()
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18061 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-10-19 02:39:02 +00:00
Florian Fainelli 803c46476c [package] update hotplug2 to r199, fixes build failures on brcm-2.4
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17508 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-09-03 18:33:52 +00:00
Jo-Philipp Wich 1777ea4ac0 [package] hotplug2 may need -fPIC
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16199 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-05-29 23:11:29 +00:00
Hamish Guthrie c8804f6367 [hotplug2] added back atm rule
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16137 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-05-28 13:31:30 +00:00
Hamish Guthrie 0cbd8a942f [hotplug2] add hotplug2 v1.0
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16136 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-05-28 13:21:58 +00:00
Hamish Guthrie 6bb5dc043e [hotplug2] Move hotplug2 v0.9 to hotplug2-old
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16135 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-05-28 13:20:54 +00:00
Florian Fainelli 580f0a8d67 [package] allow hotplug events to be triggered with the atm subsystem (#2996)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16073 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-05-26 09:30:45 +00:00
Felix Fietkau 5bdd866100 get rid of $Id$ - it has never helped us and it has broken too many patches ;)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15242 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-04-17 14:09:46 +00:00
Jose Vasconcellos c47c1e353e 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.


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14289 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-01-30 20:48:42 +00:00
Gabor Juhos 25a9217e02 [package] hotplug2: add platform hotplugging
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14248 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-01-28 20:01:11 +00:00
John Crispin 8929c4a880 remove warning from hotplug2, which pops up 10 times during boot
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12086 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-08-04 08:04:16 +00:00
Felix Fietkau 13ab5b86e6 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


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12019 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-07-30 19:02:01 +00:00
Nicolas Thill 1bc0fad874 move hotplug2 & udevtrigger to base section
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10910 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-04-21 22:31:07 +00:00
Felix Fietkau 8422957bae refactor hotplug2 rules, make sure that the default button rule is only used during the init (should fix #2772)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9644 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-12-01 17:08:04 +00:00
Felix Fietkau 6ad5c919ce bump package versions after updates
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8680 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-09-07 20:41:57 +00:00
Nicolas Thill 2180fa92a1 move package description to a separate definition, remove it when DESCRIPTION=TITLE
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8659 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-09-07 08:34:51 +00:00
John Crispin d4f61b29bc reduce watchdog trigger from 10 to 5 seconds
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8571 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-09-01 21:01:09 +00:00
Felix Fietkau e1ec900c8e add watchdog start patch from #1967
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8117 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-07-23 02:51:42 +00:00
Felix Fietkau 86b2e4df0e fix two small bugs in the hotplug2 rule parser (#2085)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8023 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-07-18 07:23:40 +00:00
Felix Fietkau 07db8f80f9 move firmware loading to hotplug2-init.rules (should fix #2056)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7955 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-07-13 02:32:32 +00:00
Felix Fietkau a7e1a7ae99 hotplug2 update - include hotplug2-init.rules from hotplug2.rules, fix permissions of various devices (fixes #2052)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7892 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-07-09 00:13:47 +00:00
Felix Fietkau b1840ac964 replace the hotplug2 fork handling hack with a better solution implemented in upstream (thanks, iSteve)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7786 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-06-30 11:05:14 +00:00
Felix Fietkau c16aa532fe hotplug2: add fork handling optimization (also fixes that pesky pppoe race condition in #1655)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7726 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-06-25 09:47:58 +00:00
Felix Fietkau 923e4ce031 update to hotplug2 svn version (recommended by iSteve)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7725 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-06-25 09:46:37 +00:00
Felix Fietkau c209060116 fix failsafe on broadcom, send netlink events in diag when running linux 2.6
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7722 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-06-25 08:32:25 +00:00