diff options
author | kay.sievers@vrfy.org <kay.sievers@vrfy.org> | 2004-02-23 19:31:14 -0800 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 21:32:30 -0700 |
commit | e41245cb256231ef6954b3cbf45f0635d01501ed (patch) | |
tree | 132c1a400dadb4ccc902bcae5e79109178b5cfcc /namedev.h | |
parent | 82962619c626edfc68d39f0b179a909dd3dd0a6b (diff) |
[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().
Diffstat (limited to 'namedev.h')
-rw-r--r-- | namedev.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -48,10 +48,12 @@ struct sysfs_class_device; #define ATTR_PARTITIONS "all_partitions" #define PARTITIONS_COUNT 15 - #define PROGRAM_MAXARG 10 #define MAX_SYSFS_PAIRS 5 +#define RULEFILE_EXT ".rules" +#define PERMFILE_EXT ".permissions" + struct sysfs_pair { char file[FILE_SIZE]; char value[VALUE_SIZE]; |