# permissions
KERNEL=="pl2303", NAME="%k", OWNER="500", GROUP="500", MODE="0666"
KERNEL=="visor", NAME="%k", OWNER="root", GROUP="uucp", MODE="0666"
-KERNEL=="camera*" NAME="%k", OWNER="root", GROUP="camera", MODE="0666"
+KERNEL=="camera*", NAME="%k", OWNER="root", GROUP="camera", MODE="0666"
# console devices
-KERNEL=="console" NAME="%k", OWNER="root", GROUP="tty", MODE="0600"
+KERNEL=="console", NAME="%k", OWNER="root", GROUP="tty", MODE="0600"
KERNEL=="tty", NAME="%k", OWNER="root", GROUP="tty", MODE="0666"
KERNEL=="tty[0-9]*", NAME="%k", OWNER="root", GROUP="tty", MODE="0660"
KERNEL=="vcs*", NAME="%k", OWNER="root", GROUP="tty", MODE="0620"
KERNEL=="ttyUSB1", NAME="%k", OWNER="root" GROUP="uucp", MODE="0666"
# pty devices
-KERNEL=="ptmx" NAME="%k", OWNER="root", GROUP="tty", MODE="0666"
-KERNEL=="pty[p-za-e][0-9a-f]*" NAME="%k", OWNER="root", GROUP="tty", MODE="0666"
-KERNEL=="tty[p-za-e][0-9a-f]*" NAME="%k", OWNER="root", GROUP="tty", MODE="0666"
-KERNEL=="cu[abiu]*" NAME="%k", OWNER="root", GROUP="uucp", MODE="0660"
+KERNEL=="ptmx", NAME="%k", OWNER="root", GROUP="tty", MODE="0666"
+KERNEL=="pty[p-za-e][0-9a-f]*", NAME="%k", OWNER="root", GROUP="tty", MODE="0666"
+KERNEL=="tty[p-za-e][0-9a-f]*", NAME="%k", OWNER="root", GROUP="tty", MODE="0666"
+KERNEL=="cu[abiu]*", NAME="%k", OWNER="root", GROUP="uucp", MODE="0660"
# sound devices
-KERNEL=="audio*" NAME="%k", OWNER="root", GROUP="audio", MODE="0666"
-KERNEL=="beep" NAME="%k", OWNER="root", GROUP="audio", MODE="0644"
-KERNEL=="dsp*" NAME="%k", OWNER="root", GROUP="audio", MODE="0666"
-KERNEL=="midi*" NAME="%k", OWNER="root", GROUP="audio", MODE="0666"
-KERNEL=="mixer*" NAME="%k", OWNER="root", GROUP="audio", MODE="0666"
-KERNEL=="music" NAME="%k", OWNER="root", GROUP="audio", MODE="0666"
-KERNEL=="sequencer*" NAME="%k", OWNER="root", GROUP="audio", MODE="0666"
+KERNEL=="audio*", NAME="%k", OWNER="root", GROUP="audio", MODE="0666"
+KERNEL=="beep", NAME="%k", OWNER="root", GROUP="audio", MODE="0644"
+KERNEL=="dsp*", NAME="%k", OWNER="root", GROUP="audio", MODE="0666"
+KERNEL=="midi*", NAME="%k", OWNER="root", GROUP="audio", MODE="0666"
+KERNEL=="mixer*", NAME="%k", OWNER="root", GROUP="audio", MODE="0666"
+KERNEL=="music", NAME="%k", OWNER="root", GROUP="audio", MODE="0666"
+KERNEL=="sequencer*", NAME="%k", OWNER="root", GROUP="audio", MODE="0666"
KERNEL=="controlC[0-9]*", NAME="snd/%k", OWNER="root", GROUP="audio", MODE="0666"
KERNEL=="hw[CD0-9]*", NAME="snd/%k", OWNER="root", GROUP="audio", MODE="0666"
KERNEL=="pcm[CD0-9cp]*", NAME="snd/%k", OWNER="root", GROUP="audio", MODE="0666"
KERNEL=="midiC[D0-9]*", NAME="snd/%k", OWNER="root", GROUP="audio", MODE="0666"
KERNEL=="timer", NAME="snd/%k", OWNER="root", GROUP="audio", MODE="0666"
KERNEL=="seq", NAME="snd/%k", OWNER="root", GROUP="audio", MODE="0666"
-KERNEL=="sndstat" NAME="%k", OWNER="root", GROUP="audio", MODE="0666"
-KERNEL=="speaker" NAME="%k", OWNER="root", GROUP="audio", MODE="0644"
-KERNEL=="sound/*" NAME="%k", OWNER="root", GROUP="audio", MODE="0666"
-KERNEL=="admmidi*" NAME="%k", OWNER="root", GROUP="audio", MODE="0666"
-KERNEL=="adsp*" NAME="%k", OWNER="root", GROUP="audio", MODE="0666"
-KERNEL=="aload*" NAME="%k", OWNER="root", GROUP="audio", MODE="0666"
-KERNEL=="amidi*" NAME="%k", OWNER="root", GROUP="audio", MODE="0666"
-KERNEL=="amixer*" NAME="%k", OWNER="root", GROUP="audio", MODE="0666"
+KERNEL=="sndstat", NAME="%k", OWNER="root", GROUP="audio", MODE="0666"
+KERNEL=="speaker", NAME="%k", OWNER="root", GROUP="audio", MODE="0644"
+KERNEL=="sound/*", NAME="%k", OWNER="root", GROUP="audio", MODE="0666"
+KERNEL=="admmidi*", NAME="%k", OWNER="root", GROUP="audio", MODE="0666"
+KERNEL=="adsp*", NAME="%k", OWNER="root", GROUP="audio", MODE="0666"
+KERNEL=="aload*", NAME="%k", OWNER="root", GROUP="audio", MODE="0666"
+KERNEL=="amidi*", NAME="%k", OWNER="root", GROUP="audio", MODE="0666"
+KERNEL=="amixer*", NAME="%k", OWNER="root", GROUP="audio", MODE="0666"
# input devices (mouse, joystick, etc)
KERNEL=="mice", NAME="input/%k", OWNER="root", GROUP="root", MODE="0644"
KERNEL=="event*", NAME="input/%k", OWNER="root", GROUP="root", MODE="0644"
KERNEL=="js*", NAME="input/%k", OWNER="root", GROUP="root", MODE="0644"
KERNEL=="ts*", NAME="input/%k", OWNER="root", GROUP="root", MODE="0644"
-KERNEL=="input/js*" NAME="%k", OWNER="root", GROUP="games",0 MODE="0666"
-KERNEL=="djs[0-3]" NAME="%k", OWNER="root", GROUP="games", MODE="0660"
-KERNEL=="psaux" NAME="%k", OWNER="root", GROUP="sys", MODE="0660"
-KERNEL=="crash" NAME="%k", OWNER="root", GROUP="root", MODE="0660"
-KERNEL=="logibm" NAME="%k", OWNER="root", GROUP="sys", MODE="0660"
-KERNEL=="jbm" NAME="%k", OWNER="root", GROUP="sys", MODE="0660"
-KERNEL=="hwtrap" NAME="%k", OWNER="root", GROUP="root", MODE="0644"
-KERNEL=="inportbm" NAME="%k", OWNER="root", GROUP="sys", MODE="0660"
-KERNEL=="sexec" NAME="%k", OWNER="root", GROUP="root", MODE="0660"
-KERNEL=="jsflash" NAME="%k", OWNER="root", GROUP="root", MODE="0660"
+KERNEL=="input/js*", NAME="%k", OWNER="root", GROUP="games",0 MODE="0666"
+KERNEL=="djs[0-3]", NAME="%k", OWNER="root", GROUP="games", MODE="0660"
+KERNEL=="psaux", NAME="%k", OWNER="root", GROUP="sys", MODE="0660"
+KERNEL=="crash", NAME="%k", OWNER="root", GROUP="root", MODE="0660"
+KERNEL=="logibm", NAME="%k", OWNER="root", GROUP="sys", MODE="0660"
+KERNEL=="jbm", NAME="%k", OWNER="root", GROUP="sys", MODE="0660"
+KERNEL=="hwtrap", NAME="%k", OWNER="root", GROUP="root", MODE="0644"
+KERNEL=="inportbm", NAME="%k", OWNER="root", GROUP="sys", MODE="0660"
+KERNEL=="sexec", NAME="%k", OWNER="root", GROUP="root", MODE="0660"
+KERNEL=="jsflash", NAME="%k", OWNER="root", GROUP="root", MODE="0660"
# power manager device
-KERNEL=="apm_bios" NAME="%k", OWNER="root", GROUP="root", MODE="0644"
+KERNEL=="apm_bios", NAME="%k", OWNER="root", GROUP="root", MODE="0644"
# printer device
-KERNEL=="lp[0-9]" NAME="%k", OWNER="root", GROUP="lp", MODE="0660"
-KERNEL=="parport*" NAME="%k", OWNER="root", GROUP="lp", MODE="0660"
+KERNEL=="lp[0-9]", NAME="%k", OWNER="root", GROUP="lp", MODE="0660"
+KERNEL=="parport*", NAME="%k", OWNER="root", GROUP="lp", MODE="0660"
# video devices
-KERNEL=="card*" NAME="dri/card%n", OWNER="root", GROUP="video", MODE="0666"
-KERNEL=="fb[0-9]" NAME="%k", OWNER="root", GROUP="video", MODE="0660"
-KERNEL=="agpgart" NAME="%k", OWNER="root", GROUP="video", MODE="0660"
-KERNEL=="nvidia*" NAME="%k", OWNER="root", GROUP="video", MODE="0666"
-KERNEL=="video*" NAME="%k", OWNER="root", GROUP="video", MODE="0660"
-KERNEL=="vbi*" NAME="%k", OWNER="root", GROUP="video", MODE="0660"
+KERNEL=="card*", NAME="dri/card%n", OWNER="root", GROUP="video", MODE="0666"
+KERNEL=="fb[0-9]", NAME="%k", OWNER="root", GROUP="video", MODE="0660"
+KERNEL=="agpgart", NAME="%k", OWNER="root", GROUP="video", MODE="0660"
+KERNEL=="nvidia*", NAME="%k", OWNER="root", GROUP="video", MODE="0666"
+KERNEL=="video*", NAME="%k", OWNER="root", GROUP="video", MODE="0660"
+KERNEL=="vbi*", NAME="%k", OWNER="root", GROUP="video", MODE="0660"
KERNEL=="dvb*", PROGRAM="/bin/sh -c 'K=%k; K=$${K#dvb}; A=$${K%%%%.*}; D=$${K#*.}; echo dvb/adapter$$A/$$D'", NAME="%c", GROUP="video", MODE="0660"
# DISK devices
-KERNEL=="ed[ab]*" NAME="%k", OWNER="root", GROUP="disk", MODE="0640"
-KERNEL=="gscd0" NAME="%k", OWNER="root", GROUP="disk", MODE="0640"
-KERNEL=="initrd" NAME="%k", OWNER="root", GROUP="disk", MODE="0640"
-KERNEL=="lmscd" NAME="%k", OWNER="root", GROUP="disk", MODE="0640"
-KERNEL=="mcd*" NAME="%k", OWNER="root", GROUP="disk", MODE="0640"
-KERNEL=="md*" NAME="%k", OWNER="root", GROUP="disk", MODE="0640"
-KERNEL=="mtd*" NAME="%k", OWNER="root", GROUP="disk", MODE="0640"
-KERNEL=="userdma" NAME="%k", OWNER="root", GROUP="root", MODE="0660"
+KERNEL=="ed[ab]*", NAME="%k", OWNER="root", GROUP="disk", MODE="0640"
+KERNEL=="gscd0", NAME="%k", OWNER="root", GROUP="disk", MODE="0640"
+KERNEL=="initrd", NAME="%k", OWNER="root", GROUP="disk", MODE="0640"
+KERNEL=="lmscd", NAME="%k", OWNER="root", GROUP="disk", MODE="0640"
+KERNEL=="mcd*", NAME="%k", OWNER="root", GROUP="disk", MODE="0640"
+KERNEL=="md*", NAME="%k", OWNER="root", GROUP="disk", MODE="0640"
+KERNEL=="mtd*", NAME="%k", OWNER="root", GROUP="disk", MODE="0640"
+KERNEL=="userdma", NAME="%k", OWNER="root", GROUP="root", MODE="0660"
# floppy devices
-KERNEL=="fd[0-3]*" NAME="%k", OWNER="root", GROUP="floppy", MODE="0660"
-KERNEL=="fd0" SYMLINK="floppy"
+KERNEL=="fd[0-3]*", NAME="%k", OWNER="root", GROUP="floppy", MODE="0660"
+KERNEL=="fd0", SYMLINK="floppy"
# permissions for removable devices like cardreaders or sticks
KERNEL=="sd*", ATTRS{scsi_level}=="3", ATTRS{type}=="0", NAME="%k", GROUP="storage"
KERNEL=="sd*", ATTRS{scsi_level}=="3", ATTRS{type}=="7", NAME="%k", GROUP="storage"
# IDE devices (hd, cdrom)
-KERNEL=="hd*" NAME="%k", OWNER="root", GROUP="disk", MODE="0660"
-KERNEL=="ht0" NAME="%k", OWNER="root", GROUP="disk", MODE="0640"
+KERNEL=="hd*", NAME="%k", OWNER="root", GROUP="disk", MODE="0660"
+KERNEL=="ht0", NAME="%k", OWNER="root", GROUP="disk", MODE="0640"
# RAID IDE
-KERNEL=="ataraid[0-9]*" NAME="%k", OWNER="root", GROUP="disk", MODE="0660"
-KERNEL=="ataraid/*" NAME="%k", OWNER="root", GROUP="disk", MODE="0660"
+KERNEL=="ataraid[0-9]*", NAME="%k", OWNER="root", GROUP="disk", MODE="0660"
+KERNEL=="ataraid/*", NAME="%k", OWNER="root", GROUP="disk", MODE="0660"
# SCSI devices
-KERNEL=="scsi/*/cd" NAME="%k", OWNER="root", GROUP="disk", MODE="0660"
-KERNEL=="scsi/*" NAME="%k", OWNER="root", GROUP="disk", MODE="0660"
-KERNEL=="sd[a-h]*" NAME="%k", OWNER="root", GROUP="disk", MODE="0640"
-KERNEL=="s[rt][0-9]*" NAME="%k", OWNER="root", GROUP="disk", MODE="0640"
-KERNEL=="scd*" NAME="%k", OWNER="root", GROUP="disk", MODE="0660"
+KERNEL=="scsi/*/cd", NAME="%k", OWNER="root", GROUP="disk", MODE="0660"
+KERNEL=="scsi/*", NAME="%k", OWNER="root", GROUP="disk", MODE="0660"
+KERNEL=="sd[a-h]*", NAME="%k", OWNER="root", GROUP="disk", MODE="0640"
+KERNEL=="s[rt][0-9]*", NAME="%k", OWNER="root", GROUP="disk", MODE="0640"
+KERNEL=="scd*", NAME="%k", OWNER="root", GROUP="disk", MODE="0660"
# generic scsi devices
-KERNEL=="sg*" NAME="%k", OWNER="root", GROUP="root", MODE="0600"
+KERNEL=="sg*", NAME="%k", OWNER="root", GROUP="root", MODE="0600"
# old CD-ROM
-KERNEL=="sbpcd*" NAME="%k", OWNER="root", GROUP="disk", MODE="0640"
+KERNEL=="sbpcd*", NAME="%k", OWNER="root", GROUP="disk", MODE="0640"
# loop devices
-KERNEL=="loop[0-9]*" NAME="%k", OWNER="root", GROUP="disk", MODE="0660"
+KERNEL=="loop[0-9]*", NAME="%k", OWNER="root", GROUP="disk", MODE="0660"
# network block devices
-KERNEL=="nb[0-7]" NAME="%k", OWNER="root", GROUP="disk", MODE="0660"
-KERNEL=="nht0" NAME="%k", OWNER="root", GROUP="disk", MODE="0640"
-KERNEL=="npt[0-3]" NAME="%k", OWNER="root", GROUP="disk", MODE="0660"
-KERNEL=="n[qrs]*" NAME="%k", OWNER="root", GROUP="disk", MODE="0640"
+KERNEL=="nb[0-7]", NAME="%k", OWNER="root", GROUP="disk", MODE="0660"
+KERNEL=="nht0", NAME="%k", OWNER="root", GROUP="disk", MODE="0640"
+KERNEL=="npt[0-3]", NAME="%k", OWNER="root", GROUP="disk", MODE="0660"
+KERNEL=="n[qrs]*", NAME="%k", OWNER="root", GROUP="disk", MODE="0640"
# memory access devices
-KERNEL=="kmem" NAME="%k", OWNER="root", GROUP="kmem", MODE="0640"
-KERNEL=="mem" NAME="%k", OWNER="root", GROUP="kmem", MODE="0640"
-KERNEL=="null" NAME="%k", OWNER="root", GROUP="sys", MODE="0666"
-KERNEL=="nvram" NAME="%k", OWNER="root", GROUP="root", MODE="0640"
-KERNEL=="port" NAME="%k", OWNER="root", GROUP="kmem", MODE="0640"
-KERNEL=="ram[0-9]*" NAME="%k", OWNER="root", GROUP="disk", MODE="0640"
-KERNEL=="random" NAME="%k", OWNER="root", GROUP="root", MODE="0644"
-KERNEL=="rtc" NAME="%k", OWNER="root", GROUP="root", MODE="0444"
-KERNEL=="urandom" NAME="%k", OWNER="root", GROUP="root", MODE="0644"
-KERNEL=="full" NAME="%k", OWNER="root", GROUP="sys", MODE="0666"
-KERNEL=="zero" NAME="%k", OWNER="root", GROUP="root", MODE="0666"
-KERNEL=="raw[0-9]*" NAME="raw/%k", OWNER="root", GROUP="disk", MODE="0660"
-KERNEL=="modreq" NAME="%k", OWNER="root", GROUP="root", MODE="0644"
-KERNEL=="msr" NAME="%k", OWNER="root", GROUP="root", MODE="0660"
-KERNEL=="profile*" NAME="%k", OWNER="root", GROUP="root", MODE="0640"
+KERNEL=="kmem", NAME="%k", OWNER="root", GROUP="kmem", MODE="0640"
+KERNEL=="mem", NAME="%k", OWNER="root", GROUP="kmem", MODE="0640"
+KERNEL=="null", NAME="%k", OWNER="root", GROUP="sys", MODE="0666"
+KERNEL=="nvram", NAME="%k", OWNER="root", GROUP="root", MODE="0640"
+KERNEL=="port", NAME="%k", OWNER="root", GROUP="kmem", MODE="0640"
+KERNEL=="ram[0-9]*", NAME="%k", OWNER="root", GROUP="disk", MODE="0640"
+KERNEL=="random", NAME="%k", OWNER="root", GROUP="root", MODE="0644"
+KERNEL=="rtc", NAME="%k", OWNER="root", GROUP="root", MODE="0444"
+KERNEL=="urandom", NAME="%k", OWNER="root", GROUP="root", MODE="0644"
+KERNEL=="full", NAME="%k", OWNER="root", GROUP="sys", MODE="0666"
+KERNEL=="zero", NAME="%k", OWNER="root", GROUP="root", MODE="0666"
+KERNEL=="raw[0-9]*", NAME="raw/%k", OWNER="root", GROUP="disk", MODE="0660"
+KERNEL=="modreq", NAME="%k", OWNER="root", GROUP="root", MODE="0644"
+KERNEL=="msr", NAME="%k", OWNER="root", GROUP="root", MODE="0660"
+KERNEL=="profile*", NAME="%k", OWNER="root", GROUP="root", MODE="0640"
# ISDN devices
-KERNEL=="isdn*" NAME="%k", OWNER="root", GROUP="tty", MODE="0660"
+KERNEL=="isdn*", NAME="%k", OWNER="root", GROUP="tty", MODE="0660"
# net devices
-KERNEL=="ippp*" NAME="%k", OWNER="root", GROUP="root", MODE="0644"
-KERNEL=="ipstate*" NAME="%k", OWNER="root", GROUP="root", MODE="0660"
-KERNEL=="spx" NAME="%k", OWNER="root", GROUP="root", MODE="0644"
-KERNEL=="fwmonitor*" NAME="%k", OWNER="root", GROUP="root", MODE="0660"
+KERNEL=="ippp*", NAME="%k", OWNER="root", GROUP="root", MODE="0644"
+KERNEL=="ipstate*", NAME="%k", OWNER="root", GROUP="root", MODE="0660"
+KERNEL=="spx", NAME="%k", OWNER="root", GROUP="root", MODE="0644"
+KERNEL=="fwmonitor*", NAME="%k", OWNER="root", GROUP="root", MODE="0660"
# hotplug rules - module autoloading for different buses
ACTION=="add", SUBSYSTEM=="pci", ENV{MODALIAS}=="*", RUN+="/sbin/modprobe $env{MODALIAS}"