diff options
author | Denys Vlasenko | 2012-05-19 22:37:07 +0200 |
---|---|---|
committer | Denys Vlasenko | 2012-05-19 22:37:07 +0200 |
commit | aaf827203d3742c6a2768b7c0a26bd494e28ed3f (patch) | |
tree | 18048a782fcaefd3419c75512f581b7d2591eea9 /examples | |
parent | 8d118546785bf20963fee979e85fc9393b095082 (diff) | |
parent | 044610413767eda4350c5adf35cf5e69a6d6df8f (diff) | |
download | busybox-aaf827203d3742c6a2768b7c0a26bd494e28ed3f.zip busybox-aaf827203d3742c6a2768b7c0a26bd494e28ed3f.tar.gz |
Merge branch 'master' of git+ssh://vda@busybox.net/var/lib/git/busybox
Diffstat (limited to 'examples')
-rw-r--r-- | examples/mdev.conf | 10 | ||||
-rw-r--r-- | examples/mdev_fat.conf | 9 |
2 files changed, 14 insertions, 5 deletions
diff --git a/examples/mdev.conf b/examples/mdev.conf index cdbb4fc..5179569 100644 --- a/examples/mdev.conf +++ b/examples/mdev.conf @@ -7,8 +7,14 @@ # instead of the default 0:0 660. # # Syntax: -# %s %d:%d %s -# devicename_regex user:group mode +# [-]devicename_regex user:group mode [=path]|[>path]|[!] [@|$|*cmd args...] +# [-]$ENVVAR=regex user:group mode [=path]|[>path]|[!] [@|$|*cmd args...] +# [-]@maj,min[-min2] user:group mode [=path]|[>path]|[!] [@|$|*cmd args...] +# +# [-]: do not stop on this match, continue reading mdev.conf +# =: move, >: move and create a symlink +# !: do not create device node +# @|$|*: run@cmd if $ACTION=add, $cmd if $ACTION=remove, *cmd in all cases null 0:0 666 zero 0:0 666 diff --git a/examples/mdev_fat.conf b/examples/mdev_fat.conf index df329b4..ceba3a7 100644 --- a/examples/mdev_fat.conf +++ b/examples/mdev_fat.conf @@ -7,10 +7,14 @@ # instead of the default 0:0 660. # # Syntax: -# [-]devicename_regex user:group mode [>|=path] [@|$|*cmd args...] +# [-]devicename_regex user:group mode [=path]|[>path]|[!] [@|$|*cmd args...] +# [-]$ENVVAR=regex user:group mode [=path]|[>path]|[!] [@|$|*cmd args...] +# [-]@maj,min[-min2] user:group mode [=path]|[>path]|[!] [@|$|*cmd args...] # +# [-]: do not stop on this match, continue reading mdev.conf # =: move, >: move and create a symlink -# @|$|*: run $cmd on delete, @cmd on create, *cmd on both +# !: do not create device node +# @|$|*: run cmd if $ACTION=remove, @cmd if $ACTION=add, *cmd in all cases # support module loading on hotplug $MODALIAS=.* root:root 660 @modprobe "$MODALIAS" @@ -49,7 +53,6 @@ sr[0-9]* root:cdrom 660 @ln -sf $MDEV cdrom fd[0-9]* root:floppy 660 # net devices --net/.* root:root 600 @nameif tun[0-9]* root:root 600 =net/ tap[0-9]* root:root 600 =net/ |