Cleaned up formatting.
1 parent 5beb472 commit 416f1b174244f3fa852c71de92c45b2f36d8b23c
@tundra tundra authored on 31 Oct 2013
Showing 1 changed file
View
22
Deconstructing_Linux_udev_Rules.rst
 
:Authors:
Tim Daneliuk (tundra@tundraware.com)
 
:Version: ``$Id: Deconstructing_Linux_udev_Rules.rst,v 1.119 2013/11/01 03:42:22 tundra Exp $``
:Version: ``$Id: Deconstructing_Linux_udev_Rules.rst,v 1.120 2013/11/01 03:46:48 tundra Exp $``
 
 
Précis
======
break rules across lines but you have to ensure that you follow the
syntax that ``udev`` expects. To keep things from mysteriously
breaking, it is best to put the entire rule one one line::
 
ACTION=="add", KERNEL=="sd*", PROGRAM=="/sbin/scsi_id --whitelisted /dev/$name",
RESULT=="VBOX_HARDDISK_VB5f712327-2bb4be0c", SYMLINK+="my_fine_disk01",
OWNER:="3009", GROUP:="421", MODE:="0600",
RUN=="/bin/raw /dev/raw/raw1 /dev/$name"
 
ACTION=="add", KERNEL=="raw1", SYMLINK+="rmy_fine_disk01", OWNER:="3009", GROUP:="421", MODE:="0600"
ACTION=="add", KERNEL=="sd*",
PROGRAM=="/sbin/scsi_id --whitelisted /dev/$name",
RESULT=="VBOX_HARDDISK_VB5f712327-2bb4be0c",
SYMLINK+="my_fine_disk01",
OWNER:="3009", GROUP:="421", MODE:="0600",
RUN=="/bin/raw /dev/raw/raw1 /dev/$name"
 
ACTION=="add", KERNEL=="raw1",
SYMLINK+="rmy_fine_disk01",
OWNER:="3009", GROUP:="421", MODE:="0600"
 
 
What Does All This Mean?
========================