mdev_fat.conf: add a rule to run nameif
authorDenys Vlasenko <vda.linux@googlemail.com>
Wed, 11 Nov 2009 05:32:43 +0000 (06:32 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 11 Nov 2009 05:32:43 +0000 (06:32 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
examples/mdev_fat.conf

index 8b94636..df329b4 100644 (file)
@@ -7,7 +7,7 @@
 # instead of the default 0:0 660.
 #
 # Syntax:
-# devicename_regex user:group mode [>|=path] [@|$|*cmd args...]
+# [-]devicename_regex user:group mode [>|=path] [@|$|*cmd args...]
 #
 # =: move, >: move and create a symlink
 # @|$|*: run $cmd on delete, @cmd on create, *cmd on both
@@ -49,6 +49,7 @@ 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/