diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2012-05-18 11:39:57 +0200 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2012-05-18 11:39:57 +0200 |
| commit | ea57f51819a358a6c1309cf028a1a2dcd90dd7a5 (patch) | |
| tree | 91ae47398abb8401bc6cadb2eaff13e6d14acb33 /examples | |
| parent | 516530c932bd17d87c9eb4347a490be051e495f4 (diff) | |
| download | busybox-w32-ea57f51819a358a6c1309cf028a1a2dcd90dd7a5.tar.gz busybox-w32-ea57f51819a358a6c1309cf028a1a2dcd90dd7a5.tar.bz2 busybox-w32-ea57f51819a358a6c1309cf028a1a2dcd90dd7a5.zip | |
mdev: when found, print major,minor into mdev.log
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/mdev.conf | 10 | ||||
| -rw-r--r-- | examples/mdev_fat.conf | 8 |
2 files changed, 14 insertions, 4 deletions
diff --git a/examples/mdev.conf b/examples/mdev.conf index cdbb4fcfe..51795694d 100644 --- a/examples/mdev.conf +++ b/examples/mdev.conf | |||
| @@ -7,8 +7,14 @@ | |||
| 7 | # instead of the default 0:0 660. | 7 | # instead of the default 0:0 660. |
| 8 | # | 8 | # |
| 9 | # Syntax: | 9 | # Syntax: |
| 10 | # %s %d:%d %s | 10 | # [-]devicename_regex user:group mode [=path]|[>path]|[!] [@|$|*cmd args...] |
| 11 | # devicename_regex user:group mode | 11 | # [-]$ENVVAR=regex user:group mode [=path]|[>path]|[!] [@|$|*cmd args...] |
| 12 | # [-]@maj,min[-min2] user:group mode [=path]|[>path]|[!] [@|$|*cmd args...] | ||
| 13 | # | ||
| 14 | # [-]: do not stop on this match, continue reading mdev.conf | ||
| 15 | # =: move, >: move and create a symlink | ||
| 16 | # !: do not create device node | ||
| 17 | # @|$|*: run@cmd if $ACTION=add, $cmd if $ACTION=remove, *cmd in all cases | ||
| 12 | 18 | ||
| 13 | null 0:0 666 | 19 | null 0:0 666 |
| 14 | zero 0:0 666 | 20 | zero 0:0 666 |
diff --git a/examples/mdev_fat.conf b/examples/mdev_fat.conf index df329b4b5..d67912ba1 100644 --- a/examples/mdev_fat.conf +++ b/examples/mdev_fat.conf | |||
| @@ -7,10 +7,14 @@ | |||
| 7 | # instead of the default 0:0 660. | 7 | # instead of the default 0:0 660. |
| 8 | # | 8 | # |
| 9 | # Syntax: | 9 | # Syntax: |
| 10 | # [-]devicename_regex user:group mode [>|=path] [@|$|*cmd args...] | 10 | # [-]devicename_regex user:group mode [=path]|[>path]|[!] [@|$|*cmd args...] |
| 11 | # [-]$ENVVAR=regex user:group mode [=path]|[>path]|[!] [@|$|*cmd args...] | ||
| 12 | # [-]@maj,min[-min2] user:group mode [=path]|[>path]|[!] [@|$|*cmd args...] | ||
| 11 | # | 13 | # |
| 14 | # [-]: do not stop on this match, continue reading mdev.conf | ||
| 12 | # =: move, >: move and create a symlink | 15 | # =: move, >: move and create a symlink |
| 13 | # @|$|*: run $cmd on delete, @cmd on create, *cmd on both | 16 | # !: do not create device node |
| 17 | # @|$|*: run cmd if $ACTION=remove, @cmd if $ACTION=add, *cmd in all cases | ||
| 14 | 18 | ||
| 15 | # support module loading on hotplug | 19 | # support module loading on hotplug |
| 16 | $MODALIAS=.* root:root 660 @modprobe "$MODALIAS" | 20 | $MODALIAS=.* root:root 660 @modprobe "$MODALIAS" |
