comparison toys/mdev.c @ 233:d4176f3f3835

Zap toys/Config.in and instead create generated/Config.in from contents of toys/*.c. Move relevant info into comment at the top of each toys/*.c. Also convert more of Makefile into a thin wrapper around shell scripts that actually do the work. (Makefile is only still there for the user interface.)
author Rob Landley <rob@landley.net>
date Sat, 19 Jan 2008 17:08:39 -0600
parents 30a6db5a95c2
children bf3f98a58ee2
comparison
equal deleted inserted replaced
232:cd4d5630c978 233:d4176f3f3835
4 * 4 *
5 * Copyright 2005, 2007 Rob Landley <rob@landley.net> 5 * Copyright 2005, 2007 Rob Landley <rob@landley.net>
6 * Copyright 2005 Frank Sorenson <frank@tuxrocks.com> 6 * Copyright 2005 Frank Sorenson <frank@tuxrocks.com>
7 * 7 *
8 * Not in SUSv3. 8 * Not in SUSv3.
9 */ 9
10 config MDEV
11 bool "mdev"
12 default n
13 help
14 usage: mdev [-s]
15
16 Create devices in /dev using information from /sys.
17
18 -s Scan all entries in /sys to populate /dev.
19
20 config MDEV_CONF
21 bool "Configuration file for mdev"
22 default n
23 depends on MDEV
24 help
25 The mdev config file (/etc/mdev.conf) contains lines that look like:
26 hd[a-z][0-9]* 0:3 660
27
28 Each line must contain three whitespace separated fields. The first
29 field is a regular expression matching one or more device names, and
30 the second and third fields are uid:gid and file permissions for
31 matching devies.
32 */
10 33
11 #include "toys.h" 34 #include "toys.h"
12 #include "lib/xregcomp.h" 35 #include "lib/xregcomp.h"
13 36
14 // mknod in /dev based on a path like "/sys/block/hda/hda1" 37 // mknod in /dev based on a path like "/sys/block/hda/hda1"