chiark / gitweb /
[PATCH] udev - allow all files in a directory as the config
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>
Tue, 24 Feb 2004 03:31:14 +0000 (19:31 -0800)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 04:32:30 +0000 (21:32 -0700)
commite41245cb256231ef6954b3cbf45f0635d01501ed
tree132c1a400dadb4ccc902bcae5e79109178b5cfcc
parent82962619c626edfc68d39f0b179a909dd3dd0a6b
[PATCH] udev - allow all files in a directory as the config

I was on the train for 5 hours today and the TODO is almost empty :)
So, at least four people wanted this feature, then here is a actual
working patch.

We may specify now in udev.conf:

  udev_rules="/etc/udev/"

and udev will scan the whole directory for files ending with *.rules,
sort it in lexical order and create our rule list from all of the files.
A plain given file will still work and the same applies to the *.permissions.

I sort the files in our usual linked list, cause klibc has no scandir().
namedev.h
namedev_parse.c
udev.c