summaryrefslogtreecommitdiffstats
path: root/udevtrigger.c
AgeCommit message (Collapse)Author
2013-09-10udevtrigger: check presence of dev attributeGabor Juhos
The presence of the 'uevent' attribute file does not always mean that a corresponding device node can be created under '/dev'. For valid device nodes, a 'dev' attribute file must be present which cntains the major and minor numbers of the device. Modify the code to check the presence of the dev attribute as well. This allows to avoid superfluous trigger_uevent calls. On a test system, the patch reduced the number of the triegger_uevent calls from 144 to 70. Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
2013-09-10udevtrigger: add device_has_attribute helperGabor Juhos
Move the code from device_list_insert() into a separate function. This makes it possible to reuse the code for other attribute files. Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
2013-09-10udevtrigger: remove trailing whitespacesGabor Juhos
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
2013-03-13add udevtrigger toolJohn Crispin