diff options
author | Mike Frysinger <vapier@gentoo.org> | 2007-02-14 13:20:29 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2007-02-14 13:20:29 +0000 |
commit | ae30210d909ba52328385b75891754b0c93ec780 (patch) | |
tree | 3c2eb0a95388b09437f6a0e839ba31bf2ff07ec2 /util-linux | |
parent | b5368bf437970dfdab7136af527a208f059c5c78 (diff) | |
download | busybox-w32-ae30210d909ba52328385b75891754b0c93ec780.tar.gz busybox-w32-ae30210d909ba52328385b75891754b0c93ec780.tar.bz2 busybox-w32-ae30210d909ba52328385b75891754b0c93ec780.zip |
create a document for mdev so people dont have to rtfs
Diffstat (limited to 'util-linux')
-rw-r--r-- | util-linux/Config.in | 36 |
1 files changed, 10 insertions, 26 deletions
diff --git a/util-linux/Config.in b/util-linux/Config.in index 1f144cae5..2184df153 100644 --- a/util-linux/Config.in +++ b/util-linux/Config.in | |||
@@ -269,46 +269,30 @@ config MDEV | |||
269 | bool "mdev" | 269 | bool "mdev" |
270 | default n | 270 | default n |
271 | help | 271 | help |
272 | mdev is a mini-udev implementation: call it with -s to populate | 272 | mdev is a mini-udev implementation for dynamically creating device |
273 | /dev from /sys, then "echo /sbin/mdev > /proc/sys/kernel/hotplug" to | 273 | nodes in the /dev directory. |
274 | have it handle hotplug events afterwards. Device names are taken | 274 | |
275 | from sysfs. | 275 | For more information, please see docs/mdev.txt |
276 | 276 | ||
277 | config FEATURE_MDEV_CONF | 277 | config FEATURE_MDEV_CONF |
278 | bool "Support /etc/mdev.conf" | 278 | bool "Support /etc/mdev.conf" |
279 | default n | 279 | default n |
280 | depends on MDEV | 280 | depends on MDEV |
281 | help | 281 | help |
282 | The mdev config file contains lines that look like: | 282 | Add support for the mdev config file to control ownership and |
283 | 283 | permissions of the device nodes. | |
284 | hd[a-z][0-9]* 0:3 660 | ||
285 | |||
286 | That's device name (with regex match), uid:gid, and permissions. | ||
287 | 284 | ||
288 | Config file parsing stops on the first matching line. If no config | 285 | For more information, please see docs/mdev.txt |
289 | entry is matched, devices are created with default 0:0 660. (Make | ||
290 | the last line match .* to override this.) | ||
291 | 286 | ||
292 | config FEATURE_MDEV_EXEC | 287 | config FEATURE_MDEV_EXEC |
293 | bool "Support command execution at device addition/removal" | 288 | bool "Support command execution at device addition/removal" |
294 | default n | 289 | default n |
295 | depends on FEATURE_MDEV_CONF | 290 | depends on FEATURE_MDEV_CONF |
296 | help | 291 | help |
297 | This adds support for an optional field to /etc/mdev.conf, consisting | 292 | This adds support for an optional field to /etc/mdev.conf for |
298 | of a special character and a command line to run after creating the | 293 | executing commands when devices are created/removed. |
299 | corresponding device(s) and before removing, ala: | ||
300 | |||
301 | hdc root:cdrom 660 *ln -s $MDEV cdrom | ||
302 | |||
303 | The $MDEV environment variable is set to the name of the device. | ||
304 | |||
305 | The special characters and their meanings are: | ||
306 | @ Run after creating the device. | ||
307 | $ Run before removing the device. | ||
308 | * Run both after creating and before removing the device. | ||
309 | 294 | ||
310 | Commands are executed via system() so you need /bin/sh, meaning you | 295 | For more information, please see docs/mdev.txt |
311 | probably want to select a default shell in the Shells menu. | ||
312 | 296 | ||
313 | config MKSWAP | 297 | config MKSWAP |
314 | bool "mkswap" | 298 | bool "mkswap" |