aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/mdev.conf10
-rw-r--r--examples/mdev_fat.conf9
2 files changed, 14 insertions, 5 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
13null 0:0 666 19null 0:0 666
14zero 0:0 666 20zero 0:0 666
diff --git a/examples/mdev_fat.conf b/examples/mdev_fat.conf
index df329b4b5..ceba3a797 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"
@@ -49,7 +53,6 @@ sr[0-9]* root:cdrom 660 @ln -sf $MDEV cdrom
49fd[0-9]* root:floppy 660 53fd[0-9]* root:floppy 660
50 54
51# net devices 55# net devices
52-net/.* root:root 600 @nameif
53tun[0-9]* root:root 600 =net/ 56tun[0-9]* root:root 600 =net/
54tap[0-9]* root:root 600 =net/ 57tap[0-9]* root:root 600 =net/
55 58