[PATCH] move distro specific config files into their own directories
authorgreg@kroah.com <greg@kroah.com>
Thu, 9 Dec 2004 01:08:20 +0000 (17:08 -0800)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 06:10:24 +0000 (23:10 -0700)
14 files changed:
etc/udev/debian/udev.permissions [new file with mode: 0644]
etc/udev/debian/udev.rules [new file with mode: 0644]
etc/udev/gentoo/udev.permissions [new file with mode: 0644]
etc/udev/gentoo/udev.rules [new file with mode: 0644]
etc/udev/redhat/udev.permissions [new file with mode: 0644]
etc/udev/redhat/udev.rules [new file with mode: 0644]
etc/udev/slackware/udev.permissions [new file with mode: 0644]
etc/udev/udev.permissions.debian [deleted file]
etc/udev/udev.permissions.gentoo [deleted file]
etc/udev/udev.permissions.redhat [deleted file]
etc/udev/udev.permissions.slackware [deleted file]
etc/udev/udev.rules.debian [deleted file]
etc/udev/udev.rules.gentoo [deleted file]
etc/udev/udev.rules.redhat [deleted file]

diff --git a/etc/udev/debian/udev.permissions b/etc/udev/debian/udev.permissions
new file mode 100644 (file)
index 0000000..6429519
--- /dev/null
@@ -0,0 +1,121 @@
+# name:user:group:mode
+
+# character devices
+
+ptmx:root:tty:0666
+random:root:root:0666
+urandom:root:root:0444
+kmem:root:kmem:0640
+mem:root:kmem:0640
+port:root:kmem:0640
+null:root:root:0666
+zero:root:root:0666
+full:root:root:0666
+
+misc/nvram:root:nvram:660
+nvram:root:nvram:660
+misc/rtc:root:audio:0664
+rtc:root:audio:0664
+
+tts/*:root:dialout:0660
+bluetooth/rfcomm/*:root:dialout:0660
+tty[BCDEFHILMPRSTUVWX][0-9]*:root:dialout:0660
+ttyS[ACIR][0-9]*:root:dialout:0660
+ttyUSB[0-9]*:root:dialout:0660
+ttyACM[0-9]*:root:dialout:0660
+ippp[0-9]*:root:dialout:0660
+isdn[0-9]*:root:dialout:0660
+isdnctrl[0-9]*:root:dialout:0660
+capi[0-9.]*:root:dialout:0660
+dcbri[0-9]*:root:dialout:0660
+ircomm[0-9]*:root:dialout:0660
+rfcomm[0-9]*:root:dialout:0660
+tty:root:tty:0666
+
+snd/*:root:audio:0660
+sound/*:root:audio:0660
+admmidi*:root:audio:0660
+adsp*:root:audio:0660
+aload*:root:audio:0660
+amidi*:root:audio:0660
+amixer*:root:audio:0660
+audio*:root:audio:0660
+dmfm*:root:audio:0660
+dsp*:root:audio:0660
+audio*:root:audio:0660
+mixer*:root:audio:0660
+music:root:audio:0660
+sequencer*:root:audio:0660
+
+printers/*:root:lp:0660
+usb/lp[0-9]*:root:lp:0660
+usb/legousbtower[0-9]*:root:root:666
+lp[0-9]*:root:lp:0660
+parport[0-9]*:root:lp:0660
+irlpt[0-9]*:root:lp:0660
+usblp[0-9]*:root:lp:0660
+
+input/mice:root:root:0600
+input/mouse[0-9]*:root:root:0600
+input/js[0-9]*:root:root:0644
+input/*:root:root:0600
+mouse[0-9]*:root:root:0600
+js[0-9]*:root:root:0644
+
+dri/card[0-9]*:root:video:0660
+fb/*:root:video:0660
+fb[0-9]*:root:video:0660
+agpgart:root:video:0660
+nvidia*:root:video:0660
+
+v4l/*:root:video:0660
+video[0-9]*:root:video:0660
+radio[0-9]*:root:video:0660
+vbi[0-9]*:root:video:0660
+vtx[0-9]*:root:video:0660
+dvb/*:root:video:0660
+
+# block devices
+
+floppy/*:root:floppy:0660
+fd[0-9]*:root:floppy:0660
+cdemu/*:root:cdrom:0660
+pktcdvd[0-9]*:root:cdrom:0660
+
+ram[0-9]*:root:disk:0660
+raw/*:root:disk:0660
+
+ide/*/cd:root:cdrom:0660
+ide/*:root:disk:0660
+hd[a-s]:root:disk:0660
+hd[a-s][0-9]*:root:disk:0660
+
+scsi/*/cd:root:cdrom:0660
+scsi/*:root:disk:0660
+sd[a-z]:root:disk:0660
+sd[a-z][0-9]*:root:disk:0660
+sd[a-i][a-z]:root:disk:0660
+sd[a-i][a-z][0-9]*:root:disk:0660
+s[gr][0-9]*:root:disk:0660
+scd[0-9]*:root:cdrom:0660
+
+dasd[0-9]*:root:disk:0660
+ataraid[0-9]*:root:disk:0660
+
+loop/*:root:disk:0660
+loop[0-9]*:root:disk:0660
+md/*:root:disk:0660
+md[0-9]*:root:disk:0660
+dm-*:root:disk:0640
+
+ht[0-9]*:root:tape:0660
+nht[0-9]*:root:tape:0660
+pt[0-9]*:root:tape:0660
+npt[0-9]*:root:tape:0660
+st[0-9]*:root:tape:0660
+nst[0-9]*:root:tape:0660
+
+sgi_fetchop:root:root:666
+iseries/vcd*:root:disk:660
+iseries/vd*:root:disk:660
+
diff --git a/etc/udev/debian/udev.rules b/etc/udev/debian/udev.rules
new file mode 100644 (file)
index 0000000..65a89ae
--- /dev/null
@@ -0,0 +1,79 @@
+# There are a number of modifiers that are allowed to be used in some
+# of the different fields. They provide the following subsitutions:
+#
+# %n the "kernel number" of the device.
+#    For example, 'sda3' has a "kernel number" of '3'
+# %e the smallest number for that name which does not matches an existing node
+# %k the kernel name for the device.
+# %M the kernel major number for the device
+# %m the kernel minor number for the device
+# %b the bus id for the device
+# %c the string returned by the PROGRAM
+# %s{filename} the content of a sysfs attribute.
+# %% the '%' char itself.
+#
+
+# permissions for IDE CD devices
+BUS="ide", KERNEL="hd[a-z]", SYSFS{removable}="1", PROGRAM="/bin/cat /proc/ide/%k/media", RESULT="cdrom*", NAME="%k", MODE="0660", GROUP="cdrom"
+
+# permissions for IDE floppy devices
+BUS="ide", KERNEL="hd[a-z]", SYSFS{removable}="1", PROGRAM="/bin/cat /proc/ide/%k/media", RESULT="floppy*", NAME="%k", MODE="0660", GROUP="floppy"
+
+# permissions for SCSI CD devices
+BUS="scsi", KERNEL="sr[0-9]*", SYSFS{type}="5", NAME="scd%n", MODE="0660", GROUP="cdrom", SYMLINK="sr%n"
+BUS="scsi", KERNEL="sg[0-9]*", SYSFS{type}="5", NAME="%k", MODE="0660", GROUP="cdrom"
+
+
+# USB devices
+BUS="usb", KERNEL="hiddev*",   NAME="usb/%k"
+BUS="usb", KERNEL="auer*",     NAME="usb/%k"
+BUS="usb", KERNEL="legousbtower*", NAME="usb/%k"
+BUS="usb", KERNEL="dabusb*",   NAME="usb/%k"
+BUS="usb", KERNEL="lp[0-9]*",  NAME="usb/%k"
+BUS="usb", KERNEL="cpad[0-9]*",        NAME="usb/%k"
+
+KERNEL="dvb*",         PROGRAM="/etc/udev/scripts/dvb.sh %k", NAME="%c"
+
+KERNEL="card*",                NAME="dri/card%n"
+KERNEL="cdemu[0-9]*",  NAME="cdemu/%n"
+KERNEL="pktcdvd[0-9]*",        NAME="pktcdvd/%n"
+KERNEL="pktcdvd",      NAME="pktcdvd/control"
+KERNEL="cpu[0-9]*",    NAME="cpu/%n/cpuid"
+KERNEL="msr[0-9]*",    NAME="cpu/%n/msr"
+KERNEL="microcode",    NAME="cpu/microcode"
+
+# ALSA devices
+KERNEL="controlC[0-9]*", NAME="snd/%k"
+KERNEL="hwC[D0-9]*",   NAME="snd/%k"
+KERNEL="pcmC[D0-9cp]*",        NAME="snd/%k"
+KERNEL="midiC[D0-9]*", NAME="snd/%k"
+KERNEL="timer",                NAME="snd/%k"
+KERNEL="seq",          NAME="snd/%k"
+
+# input devices
+KERNEL="mice",         NAME="input/%k"
+KERNEL="mouse[0-9]*",  NAME="input/%k"
+KERNEL="event[0-9]*",  NAME="input/%k", PROGRAM="/etc/udev/scripts/inputdev.sh %k", RESULT="inputdev", MODE="0664", GROUP="video"
+KERNEL="event[0-9]*",  NAME="input/%k"
+KERNEL="js[0-9]*",     NAME="input/%k"
+KERNEL="ts[0-9]*",     NAME="input/%k"
+KERNEL="uinput",       NAME="input/%k"
+
+KERNEL="tap[0-9]*",    NAME="net/%k"
+KERNEL="tun",          NAME="net/%k"
+
+# CAPI devices
+KERNEL="capi",         NAME="capi20", SYMLINK="isdn/capi20"
+KERNEL="capi[0-9]*",   NAME="capi/%n"
+
+# Zaptel
+KERNEL="zapctl",       NAME="zap/ctl"
+KERNEL="zaptimer",     NAME="zap/timer"
+KERNEL="zapchannel",   NAME="zap/channel"
+KERNEL="zappseudo",    NAME="zap/pseudo"
+KERNEL="zap[0-9]*",    NAME="zap/%n"
+
+# device mapper creates its own device nodes, so ignore these
+KERNEL="dm-[0-9]*",    NAME=""
+KERNEL="device-mapper",        NAME="mapper/control"
+
diff --git a/etc/udev/gentoo/udev.permissions b/etc/udev/gentoo/udev.permissions
new file mode 100644 (file)
index 0000000..51dd9f2
--- /dev/null
@@ -0,0 +1,205 @@
+# /etc/udev/udev.permissions:  permission/ownership map for udev
+# $Header: /home/cvsroot/gentoo-x86/sys-fs/udev/files/udev.permissions,v 1.3 2004/01/01 03:41:24 azarah Exp $
+
+# console devices
+console:root:tty:0600
+tty:root:tty:0666
+tty[0-9]*:root:tty:0660
+vc/[0-9]*:root:tty:0660
+
+# pty devices
+#  Set this to 0660 if you only want users belonging to tty group
+#  to be able to allocate PTYs
+ptmx:root:tty:0666
+pty[p-za-e][0-9a-f]*:root:tty:0660
+tty[p-za-e][0-9a-f]*:root:tty:0660
+pty/m*:root:tty:0660
+vc/s*:root:tty:0660
+
+# serial+dialup devices
+ttyS*:root:tty:0660
+ippp*:root:tty:0660
+isdn*:root:tty:0660
+isdnctrl*:root:tty:0660
+capi*:root:tty:0660
+dcbri*:root:tty:0660
+ircomm*:root:tty:0660
+ttyUSB*:root:usb:0660
+tts/[0-9]*:root:tty:0660
+tts/USB[0-9]*:root:usb:0660
+
+# vc devices
+vcs:root:root:0600
+vcs[0-9]*:root:root:0600
+vcsa:root:root:0600
+vcsa[0-9]*:root:root:0600
+vcc/*:root:root:0600
+
+# memory devices
+random:root:root:0666
+urandom:root:root:0444
+mem:root:kmem:0640
+kmem:root:kmem:0640
+port:root:kmem:0640
+full:root:root:0666
+null:root:root:0666
+zero:root:root:0666
+
+# misc devices
+misc/nvram:root:root:0660
+misc/rtc:root:root:0664
+misc/inotify:root:root:0666
+
+# floppy devices
+fd[01]*:root:floppy:0660
+
+# audio devices
+dsp*:root:audio:0660
+audio*:root:audio:0660
+midi*:root:audio:0660
+mixer*:root:audio:0660
+sequencer*:root:audio:0660
+sound/*:root:audio:0660
+snd/*:root:audio:0660
+beep:root:audio:0660
+admm*:root:audio:0660
+adsp*:root:audio:0660
+aload*:root:audio:0660
+amidi*:root:audio:0660
+dmfm*:root:audio:0660
+dmmidi*:root:audio:0660
+sndstat:root:audio:0660
+
+# optical devices
+sr*:root:cdrom:660
+scd*:root:cdrom:660
+pcd*:root:cdrom:0660
+cdrom*:root:cdrom:0660
+dvd:root:cdrom:0660
+rdvd:root:cdrom:0660
+cdroms/*:root:cdrom:0660
+
+# pilot/palm devices
+pilot:root:uucp:0660
+
+# jaz devices
+jaz*:root:disk:0660
+
+# zip devices
+pocketzip*:root:disk:0660
+zip*:root:disk:0660
+
+# ls120 devices
+ls120:root:disk:0660
+ls120*:root:disk:0660
+
+# lp devices
+lp*:root:lp:0660
+parport*:root:lp:0660
+irlpt*:root:lp:0660
+usblp*:root:lp:0660
+usb/lp*:root:lp:0660
+
+# scanner devices
+scanner:root:root:0600
+usb/scanner*:root:root:0600
+
+# camera devices
+camera*:root:root:0600
+usb/dc2xx*:root:root:0600
+usb/mdc800*:root:root:0600
+
+# raw devices
+ram*:root:disk:660
+raw/*:root:disk:660
+
+# disk devices
+hd*:root:disk:660
+sd*:root:disk:660
+dasd*:root:disk:660
+ataraid*:root:disk:660
+loop*:root:disk:660
+md*:root:disk:660
+ide/*/*/*/*/*:root:disk:660
+discs/*/*:root:disk:660
+loop/*:root:disk:660
+md/*:root:disk:660
+
+# tape devices
+ht*:root:tape:0660
+nht*:root:tape:0660
+pt[0-9]*:root:tape:0660
+npt*:root:tape:0660
+st*:root:tape:0660
+nst*:root:tape:0660
+
+# dm devices
+dm-*:root:root:0640
+
+# memstick devices
+memstick*:root:root:0600
+
+# flash devices
+flash*:root:root:0600
+
+# diskonkey devices
+diskonkey*:root:disk:0660
+
+# rem_ide devices
+microdrive*:root:disk:0660
+
+# fb devices
+fb:root:root:0600
+fb[0-9]*:root:root:0600
+fb/*:root:root:0600
+
+# kbd devices
+kbd:root:root:0644
+
+# joystick devices
+js[0-9]*:root:root:0644
+djs[0-9]*:root:root:0644
+
+# v4l devices
+video*:root:video:0660
+radio*:root:video:0660
+winradio*:root:video:0660
+vtx*:root:video:0660
+vbi*:root:video:0660
+video/*:root:video:0660
+vttuner:root:video:0660
+v4l/*:root:video:0660
+
+# input devices
+input/event*:root:root:600
+input/ts*:root:root:600
+input/*:root:root:644
+
+# Sony Vaio Jogdial sonypi device
+sonypi:root:root:0666
+
+# gpm devices
+gpmctl:root:root:0700
+
+# dri devices
+nvidia*:root:video:0660
+3dfx*:root:video:0660
+dri/*:root:video:0660
+
+# mainboard devices
+apm_bios:root:root:0600
+
+# scsi devices
+sg*:root:disk:0660
+pg*:root:disk:0660
+cdwriter:root:disk:0660
+
+# usb devices
+usb/dabusb*:root:usb:0660
+usb/mdc800*:root:usb:0660
+usb/rio500:root:usb:0660
+usb/legousbtower*:root:usb:0660
+
+sgi_fetchop:root:root:666
+iseries/vcd*:root:disk:660
+iseries/vd*:root:disk:660
diff --git a/etc/udev/gentoo/udev.rules b/etc/udev/gentoo/udev.rules
new file mode 100644 (file)
index 0000000..6a53e88
--- /dev/null
@@ -0,0 +1,149 @@
+# /etc/udev/udev.rules:  device naming rules for udev
+#
+# Gentoo specific rules, based a bit on devfs rules, but much simpler.
+#
+# There are a number of modifiers that are allowed to be used in some of the
+# fields.  See the udev man page for a full description of them.
+
+
+###########################################################
+#
+# For devfs similar /dev layout (neater)
+#
+###########################################################
+
+# cdrom symlinks and other good cdrom naming
+BUS="ide",  KERNEL="hd[a-z]",  PROGRAM="/etc/udev/scripts/cdsymlinks.sh %k", SYMLINK="%c{1} %c{2} %c{3} %c{4} %c{5} %c{6}"
+BUS="scsi", KERNEL="sr[0-9]*",  PROGRAM="/etc/udev/scripts/cdsymlinks.sh %k", SYMLINK="%c{1} %c{2} %c{3} %c{4} %c{5} %c{6}"
+BUS="scsi", KERNEL="scd[a-z]", PROGRAM="/etc/udev/scripts/cdsymlinks.sh %k", SYMLINK="%c{1} %c{2} %c{3} %c{4} %c{5} %c{6}"
+
+# devfs-names for ide-devices (uncomment only one)
+#  /dev/ide/.../{disc,cd} and /dev/{cdroms,discs}/* type names
+BUS="ide", KERNEL="hd*", PROGRAM="/etc/udev/scripts/ide-devfs.sh %k %b %n", NAME="%k", SYMLINK="%c{1} %c{2}", GROUP="%c{3}"
+
+# dri devices
+KERNEL="card*",                NAME="dri/card%n"
+
+# alsa devices
+KERNEL="controlC[0-9]*", NAME="snd/%k"
+KERNEL="hw[CD0-9]*",    NAME="snd/%k"
+KERNEL="pcm[CD0-9cp]*",         NAME="snd/%k"
+KERNEL="midiC[D0-9]*",  NAME="snd/%k"
+KERNEL="timer",                 NAME="snd/%k"
+KERNEL="seq",           NAME="snd/%k"
+
+# capi devices
+KERNEL="capi",         NAME="capi20", SYMLINK="isdn/capi20"
+KERNEL="capi*",                NAME="capi/%n"
+
+# cpu devices
+KERNEL="cpu[0-9]*",    NAME="cpu/%n/cpuid"
+KERNEL="msr[0-9]*",    NAME="cpu/%n/msr"
+KERNEL="microcode",    NAME="cpu/microcode"
+
+# dm devices (ignore them)
+KERNEL="dm-[0-9]*",    NAME=""
+# create a symlink named after the device map name
+# note devmap_name comes with extras/multipath
+#KERNEL="dm-[0-9]*",   PROGRAM="/sbin/devmap_name %M %m", NAME="%k", SYMLINK="%c"
+KERNEL="device-mapper",        NAME="mapper/control"
+
+# fb devices
+KERNEL="fb[0-9]*",     NAME="fb/%n", SYMLINK="%k"
+
+# floppy devices
+KERNEL="fd[0-9]*",     NAME="floppy/%n", SYMLINK="%k"
+
+# i2c devices
+KERNEL="i2c-[0-9]*",   NAME="i2c/%n", SYMLINK="%k"
+
+# input devices
+KERNEL="mice",         NAME="input/%k"
+KERNEL="mouse*",       NAME="input/%k"
+KERNEL="event*",       NAME="input/%k"
+KERNEL="js*",          NAME="input/%k"
+KERNEL="ts*",          NAME="input/%k"
+
+# loop devices
+KERNEL="loop[0-9]*",   NAME="loop/%n", SYMLINK="%k"
+
+# md block devices
+KERNEL="md[0-9]*",     NAME="md/%n", SYMLINK="%k"
+
+# misc devices
+KERNEL="agpgart",      NAME="misc/%k", SYMLINK="%k"
+KERNEL="psaux",                NAME="misc/%k", SYMLINK="%k"
+KERNEL="rtc",          NAME="misc/%k", SYMLINK="%k"
+KERNEL="uinput",       NAME="misc/%k", SYMLINK="%k"
+KERNEL="inotify",      NAME="misc/%k", SYMLINK="%k"
+
+# netlink devices
+KERNEL="route",                NAME="netlink/%k"
+KERNEL="skip",         NAME="netlink/%k"
+KERNEL="usersock",     NAME="netlink/%k"
+KERNEL="fwmonitor",    NAME="netlink/%k"
+KERNEL="tcpdiag",      NAME="netlink/%k"
+KERNEL="nflog",                NAME="netlink/%k"
+KERNEL="xfrm",         NAME="netlink/%k"
+KERNEL="arpd",         NAME="netlink/%k"
+KERNEL="route6",       NAME="netlink/%k"
+KERNEL="ip6_fw",       NAME="netlink/%k"
+KERNEL="dnrtmsg",      NAME="netlink/%k"
+KERNEL="tap*",         NAME="netlink/%k"
+
+# network devices
+KERNEL="tun",          NAME="net/%k"
+
+# pty devices
+KERNEL="pty[p-za-e][0-9a-f]*", NAME="pty/m%n", SYMLINK="%k"
+KERNEL="tty[p-za-e][0-9a-f]*", NAME="pty/s%n", SYMLINK="%k"
+
+# ramdisk devices
+KERNEL="ram[0-9]*",    NAME="rd/%n", SYMLINK="%k"
+
+# raw devices
+KERNEL="raw[0-9]*",    NAME="raw/%k"
+
+# sound devices
+KERNEL="adsp",           NAME="sound/%k", SYMLINK="%k"
+KERNEL="adsp[0-9]*",     NAME="sound/%k", SYMLINK="%k"
+KERNEL="audio",                  NAME="sound/%k", SYMLINK="%k"
+KERNEL="audio[0-9]*",    NAME="sound/%k", SYMLINK="%k"
+KERNEL="dsp",            NAME="sound/%k", SYMLINK="%k"
+KERNEL="dsp[0-9]*",      NAME="sound/%k", SYMLINK="%k"
+KERNEL="mixer",                  NAME="sound/%k", SYMLINK="%k"
+KERNEL="mixer[0-9]*",    NAME="sound/%k", SYMLINK="%k"
+KERNEL="sequencer",      NAME="sound/%k", SYMLINK="%k"
+KERNEL="sequencer[0-9]*", NAME="sound/%k", SYMLINK="%k"
+
+# tty devices
+KERNEL="tty[0-9]*",    NAME="vc/%n",  SYMLINK="%k"
+KERNEL="ttyS[0-9]*",   NAME="tts/%n", SYMLINK="%k"
+KERNEL="ttyUSB[0-9]*", NAME="tts/USB%n"
+
+# usb devices
+KERNEL="hiddev*",              NAME="usb/%k"
+KERNEL="auer*",                        NAME="usb/%k"
+KERNEL="legousbtower*",                NAME="usb/%k"
+KERNEL="dabusb*",              NAME="usb/%k"
+BUS="usb", KERNEL="lp[0-9]*",  NAME="usb/%k"
+
+# vc devices
+KERNEL="vcs",          NAME="vcc/0",   SYMLINK="%k"
+KERNEL="vcs[0-9]*",    NAME="vcc/%n",  SYMLINK="%k"
+KERNEL="vcsa",         NAME="vcc/a0",  SYMLINK="%k"
+KERNEL="vcsa[0-9]*",   NAME="vcc/a%n", SYMLINK="%k"
+
+# v4l devices
+KERNEL="video[0-9]*",  NAME="v4l/video%n",     SYMLINK="video%n"
+KERNEL="radio[0-9]*",  NAME="v4l/radio%n"
+KERNEL="vbi[0-9]*",    NAME="v4l/vbi%n",       SYMLINK="vbi%n"
+KERNEL="vtx[0-9]*",    NAME="v4l/vtx%n"
+
+# Asterix Zaptel devices
+KERNEL="zapctl",       NAME="zap/ctl"
+KERNEL="zaptimer",     NAME="zap/timer"
+KERNEL="zapchannel",   NAME="zap/channel"
+KERNEL="zappseudo",    NAME="zap/pseudo"
+KERNEL="zap[0-9]*",    NAME="zap/%n"
+
diff --git a/etc/udev/redhat/udev.permissions b/etc/udev/redhat/udev.permissions
new file mode 100644 (file)
index 0000000..c966639
--- /dev/null
@@ -0,0 +1,194 @@
+# /etc/udev/udev.permissions:  permission/ownership map for udev
+
+# console devices
+console:root:root:0600
+tty[0-9][0-9]*:root:tty:0660
+vc/[0-9]*:root:tty:0660
+
+# pty devices
+#  Set this to 0660 if you only want users belonging to tty group
+#  to be able to allocate PTYs
+ptmx:root:tty:0666
+tty:root:tty:0666
+pty[p-za-e][0-9a-f]*:root:tty:0660
+tty[p-za-e][0-9a-f]*:root:tty:0660
+pty/m*:root:tty:0660
+vc/s*:root:tty:0660
+
+# serial+dialup devices
+ttyS*:root:uucp:0660
+ippp*:root:root:0660
+isdn*:root:root:0660
+isdnctrl*:root:root:0660
+capi*:root:root:0660
+dcbri*:root:root:0660
+ircomm*:root:uucp:0660
+ttyUSB*:root:uucp:0660
+tts/[0-9]*:root:uucp:0660
+tts/USB[0-9]*:root:uucp:0660
+
+# vc devices
+vcs:vcsa:tty:0600
+vcs[0-9]*:vcsa:tty:0600
+vcsa:vcsa:tty:0600
+vcsa[0-9]*:vcsa:tty:0600
+vcc/*:vcsa:tty:0600
+
+# memory devices
+random:root:root:0666
+urandom:root:root:0444
+mem:root:kmem:0640
+kmem:root:kmem:0640
+port:root:kmem:0640
+full:root:root:0666
+null:root:root:0666
+zero:root:root:0666
+
+# misc devices
+nvram:root:root:0660
+rtc:root:root:0660
+
+# floppy devices
+fd[01]*:root:floppy:0660
+
+# audio devices
+dsp*:root:root:0660
+audio*:root:root:0660
+midi*:root:root:0660
+mixer*:root:root:0660
+sequencer*:root:root:0660
+sound/*:root:root:0660
+snd/*:root:root:0660
+beep:root:root:0660
+admm*:root:root:0660
+adsp*:root:root:0660
+aload*:root:root:0660
+amidi*:root:root:0660
+dmfm*:root:root:0660
+dmmidi*:root:root:0660
+sndstat:root:root:0660
+
+# optical devices
+sr*:root:disk:660
+scd*:root:disk:660
+pcd*:root:disk:0660
+disk*:root:disk:0660
+dvd:root:disk:0660
+rdvd:root:disk:0660
+cdroms/*:root:disk:0660
+
+# pilot/palm devices
+pilot:root:uucp:0660
+
+# jaz devices
+jaz*:root:disk:0660
+
+# zip devices
+pocketzip*:root:disk:0660
+zip*:root:disk:0660
+
+# ls120 devices
+ls120:root:disk:0660
+ls120*:root:disk:0660
+
+# lp devices
+lp*:root:lp:0660
+parport*:root:lp:0660
+irlpt*:root:lp:0660
+usblp*:root:lp:0660
+usb/lp*:root:lp:0660
+
+# scanner devices
+scanner:root:root:0600
+usb/scanner*:root:root:0600
+
+# camera devices
+camera*:root:root:0600
+usb/dc2xx*:root:root:0600
+usb/mdc800*:root:root:0600
+
+# raw devices
+ram*:root:disk:660
+raw/*:root:disk:660
+
+# disk devices
+hd*:root:disk:660
+sd*:root:disk:660
+dasd*:root:disk:660
+ataraid*:root:disk:660
+loop*:root:disk:660
+md*:root:disk:660
+ide/*/*/*/*/*:root:disk:660
+discs/*/*:root:disk:660
+loop/*:root:disk:660
+md/*:root:disk:660
+
+# tape devices
+ht*:root:disk:0660
+nht*:root:disk:0660
+pt[0-9]*:root:disk:0660
+npt*:root:disk:0660
+st*:root:disk:0660
+nst*:root:disk:0660
+
+# dm devices
+dm-*:root:root:0640
+
+# memstick devices
+memstick*:root:root:0600
+
+# flash devices
+flash*:root:root:0600
+
+# diskonkey devices
+diskonkey*:root:disk:0660
+
+# rem_ide devices
+microdrive*:root:disk:0660
+
+# fb devices
+fb:root:root:0600
+fb[0-9]*:root:root:0600
+fb/*:root:root:0600
+
+# kbd devices
+kbd:root:root:0644
+
+# joystick devices
+js[0-9]*:root:root:0644
+djs[0-9]*:root:root:0644
+
+# v4l devices
+video*:root:root:0660
+radio*:root:root:0660
+winradio*:root:root:0660
+vtx*:root:root:0660
+vbi*:root:root:0660
+video/*:root:root:0660
+vttuner:root:root:0660
+v4l/*:root:root:0660
+
+# input devices
+input/*:root:root:644
+
+# gpm devices
+gpmctl:root:root:0700
+
+# dri devices
+nvidia*:root:root:0660
+3dfx*:root:root:0660
+dri/*:root:root:0660
+
+# mainboard devices
+apm_bios:root:root:0600
+
+# scsi devices
+sg*:root:disk:0660
+pg*:root:disk:0660
+cdwriter:root:disk:0660
+
+# usb devices
+usb/dabusb*:root:usb:0660
+usb/mdc800*:root:usb:0660
+usb/rio500:root:usb:0660
+
diff --git a/etc/udev/redhat/udev.rules b/etc/udev/redhat/udev.rules
new file mode 100644 (file)
index 0000000..0a43358
--- /dev/null
@@ -0,0 +1,125 @@
+# /etc/udev/udev.rules:  device naming rules for udev
+#
+# There are a number of modifiers that are allowed to be used in some of the
+# fields.  See the udev man page for a full description of them.
+
+###########################################################
+#
+# Add your own rules here (examples are commented)
+#
+###########################################################
+
+# Looking for scsi bus id 42:0:0:1
+#BUS="scsi", PROGRAM="/bin/echo -n test-%b", RESULT="test-42:0:0:1", NAME="%c"
+
+# A usb camera.
+#BUS="usb", SYSFS_vendor="FUJIFILM", SYSFS_model="M100", NAME="camera%n"
+
+# USB Epson printer to be called lp_epson
+#BUS="usb", SYSFS_serial="HXOLL0012202323480", NAME="lp_epson"
+
+# USB HP printer to be called lp_hp
+#BUS="usb", SYSFS_serial="W09090207101241330", NAME="lp_hp"
+
+# sound card with PCI bus id 00:0b.0 to be the first sound card
+#BUS="pci", ID="00:0b.0", NAME="dsp"
+
+# sound card with PCI bus id 00:07.1 to be the second sound card
+#BUS="pci", ID="00:07.1", NAME="dsp1"
+
+# USB mouse plugged into the third port of the first hub to be called mouse0
+#BUS="usb", PLACE="1.3", NAME="mouse0"
+
+# USB tablet plugged into the third port of the second hub to be called mouse1
+#BUS="usb", PLACE="2.3", NAME="mouse1"
+#BUS="usb", PLACE="2.4", NAME="mouse2"
+
+# ttyUSB1 should always be called visor
+#KERNEL="ttyUSB1", NAME="visor"
+#KERNEL="ttyUSB0", NAME="pl2303"
+
+
+###########################################################
+#
+# For devfs similar /dev layout (neater)
+#
+###########################################################
+
+# devfs-names for ide-devices (uncomment only one)
+#  /dev/ide/.../{disc,cd} and /dev/{cdroms,discs}/* type names
+BUS="ide", KERNEL="hd*", PROGRAM="/etc/udev/scripts/ide-devfs.sh %k %b %n", NAME="%k", SYMLINK="%c{1} %c{2}"
+
+# alsa devices
+KERNEL="controlC[0-9]*", NAME="snd/%k"
+KERNEL="hw[CD0-9]*",     NAME="snd/%k"
+KERNEL="pcm[CD0-9cp]*",  NAME="snd/%k"
+KERNEL="midi[CD0-9]*",   NAME="snd/%k"
+KERNEL="timer",          NAME="snd/%k"
+KERNEL="seq",            NAME="snd/%k"
+
+# dm devices (ignore them)
+KERNEL="dm-[0-9]*",     NAME=""
+KERNEL="device-mapper", NAME="mapper/control"
+
+# fb devices
+KERNEL="fb[0-9]*", NAME="fb/%n", SYMLINK="%k"
+
+# floppy devices
+KERNEL="fd[0-9]*", NAME="floppy/%n", SYMLINK="%k"
+
+# i2c devices
+KERNEL="i2c-[0-9]*", NAME="i2c/%n", SYMLINK="%k"
+
+# input devices
+KERNEL="mice",        NAME="input/mice"
+KERNEL="mouse[0-9]*", NAME="input/mouse%n"
+KERNEL="event[0-9]*", NAME="input/event%n"
+KERNEL="js*",         NAME="input/%k"
+KERNEL="ts*",         NAME="input/%k"
+
+# loop devices
+KERNEL="loop[0-9]*", NAME="loop/%n", SYMLINK="%k"
+
+# md block devices
+KERNEL="md[0-9]*", NAME="md/%n", SYMLINK="%k"
+
+# misc devices
+KERNEL="rtc",     NAME="misc/%k", SYMLINK="%k"
+KERNEL="psaux",   NAME="misc/%k", SYMLINK="%k"
+KERNEL="agpgart", NAME="misc/%k", SYMLINK="%k"
+KERNEL="rtc",     NAME="misc/%k", SYMLINK="%k"
+KERNEL="psaux",   NAME="misc/%k", SYMLINK="%k"
+KERNEL="uinput",  NAME="misc/%k", SYMLINK="%k"
+
+# pty devices
+KERNEL="pty[p-za-e][0-9a-f]*", NAME="pty/m%n", SYMLINK="%k"
+KERNEL="tty[p-za-e][0-9a-f]*", NAME="tty/s%n", SYMLINK="%k"
+
+# ramdisk devices
+KERNEL="ram[0-9]*", NAME="rd/%n", SYMLINK="%k"
+
+# sound devices
+KERNEL="adsp",       NAME="sound/adsp"        SYMLINK="%k"
+KERNEL="audio",      NAME="sound/audio",      SYMLINK="%k"
+KERNEL="dsp",        NAME="sound/dsp",        SYMLINK="%k"
+KERNEL="mixer",      NAME="sound/mixer",      SYMLINK="%k"
+KERNEL="sequencer",  NAME="sound/sequencer",  SYMLINK="%k"
+KERNEL="sequencer2", NAME="sound/sequencer2", SYMLINK="%k"
+
+# tty devices
+KERNEL="tty[0-9]*",    NAME="vc/%n",  SYMLINK="%k"
+KERNEL="ttyS[0-9]*",   NAME="tts/%n", SYMLINK="%k"
+KERNEL="ttyUSB[0-9]*", NAME="tts/USB%n"
+
+# vc devices
+KERNEL="vcs",        NAME="vcc/0",   SYMLINK="%k"
+KERNEL="vcs[0-9]*",  NAME="vcc/%n",  SYMLINK="%k"
+KERNEL="vcsa",       NAME="vcc/a0",  SYMLINK="%k"
+KERNEL="vcsa[0-9]*", NAME="vcc/a%n", SYMLINK="%k"
+
+# v4l devices
+KERNEL="video[0-9]*", NAME="v4l/video%n"
+KERNEL="radio[0-9]*", NAME="v4l/radio%n"
+KERNEL="vbi[0-9]*",   NAME="v4l/vbi%n"
+KERNEL="vtx[0-9]*",   NAME="v4l/vtx%n"
+
diff --git a/etc/udev/slackware/udev.permissions b/etc/udev/slackware/udev.permissions
new file mode 100644 (file)
index 0000000..2edc1aa
--- /dev/null
@@ -0,0 +1,133 @@
+#name:user:group:mode
+pl2303:500:500:0666
+visor:root:uucp:0666
+camera*:500:500:0666
+
+# console devices
+console:root:tty:0600
+tty[0-9][0-9]*:root:tty:0666
+vcs*:root:tty:0620
+tty[CIS]*:root:uucp:0660
+ttyUB[0-9]:root:uucp:0660
+ttyUSB0:root:uucp:0660
+ttyUSB1:root:uucp:0666
+
+# pty devices
+ptmx:root:tty:0666
+pty[p-za-e][0-9a-f]*:root:tty:0666
+tty[p-za-e][0-9a-f]*:root:tty:0666
+cu[abiu]*:root:uucp:0660
+
+# sound devices
+audio*:root:sys:0662
+beep:root:root:0644
+dsp*:root:sys:0662
+midi*:root:sys:0662
+mixer*:root:sys:0666
+music:root:sys:0662
+sequencer*:root:sys:0662
+snd/*:root:root:0666
+sndstat:root:sys:0662
+speaker:root:root:0644
+sound/*:root:root:0666
+admmidi*:root:root:0666
+adsp*:root:root:0666
+aload*:root:root:0666
+amidi*:root:root:0666
+amixer*:root:root:0666
+
+# input devices (mouse, joystick, etc)
+input/*:root:root:0644
+input/js*:root:games:0666
+djs[0-3]:root:games:0660
+psaux:root:sys:0660
+crash:roor:root:0660
+logibm:root:sys:0660
+jbm:root:sys:0660
+hwtrap:root:root:0644
+inportbm:root:sys:0660
+sexec:root:root:0660
+jsflash:roo:root:0660
+
+# power manager device
+apm_bios:root:root:0644
+
+# printer device
+lp[0-9]:root:lp:0660
+parport*:root:root:0660
+
+# video devices
+dri/card[0-9]*:root:root:0666
+fb[0-9]:root:tty:0660
+agpgart:root:root:0660
+nvidia*:root:root:0666
+video*:root:sys:0660
+
+# DISK devices
+ed[ab]*:root:disk:0640
+gscd0:root:disk:0640
+initrd:root:disk:0640
+lmscd:root:disk:0640
+mcd*:root:disk:0640
+md*:root:disk:0660
+mtd*:root:disk:0640
+userdma:root:root:0660
+
+# floppy devices
+fd[0-3]*:root:floppy:0660
+
+# IDE devices (hd, cdrom)
+hd*:root:disk:0660
+ht0:root:disk:0640
+
+# RAID IDE
+ataraid[0-9]*:root:disk:0660
+ataraid/*:root:disk:0660
+
+# SCSI devices
+scsi/*/cd:root:disk:0660
+scsi/*:root:disk:0660
+sd[a-h]*:root:disk:0640
+s[rt][0-9]*:root:disk:0640
+scd*:root:disk:0660
+
+# generic scsi devices
+sg*:root:root:0600
+
+# old CD-ROM
+sbpcd*:root:disk:0640
+
+# loop devices
+loop[0-9]*:root:disk:0660
+
+# network block devices
+nb[0-7]:root:disk:0660
+nht0:root:disk:0640
+npt[0-3]:root:disk:0660
+n[qrs]*:root:disk:0640
+
+# memory access devices
+kmem:root:kmem:0640
+mem:root:kmem:0640
+null:root:sys:0666
+nvram:root:root:0640
+port:root:kmem:0640
+ram[0-9]*:root:disk:0640
+random:root:root:0644
+rtc:root:root:0444
+urandom:root:root:0644
+full:root:sys:0666
+zero:root:root:0664
+raw/*:root:disk:0660
+modreq:root:root:0644
+msr:root:root:0660
+profile*:root:root:0640
+
+# ISDN devices
+isdn*:root:tty:0660
+
+# net devices
+ippp*:root:root:0644
+ipstate:root:root:0660
+spx:root:root:0644
+fwmonitor:root:root:0660
diff --git a/etc/udev/udev.permissions.debian b/etc/udev/udev.permissions.debian
deleted file mode 100644 (file)
index 6429519..0000000
+++ /dev/null
@@ -1,121 +0,0 @@
-# name:user:group:mode
-
-# character devices
-
-ptmx:root:tty:0666
-random:root:root:0666
-urandom:root:root:0444
-kmem:root:kmem:0640
-mem:root:kmem:0640
-port:root:kmem:0640
-null:root:root:0666
-zero:root:root:0666
-full:root:root:0666
-
-misc/nvram:root:nvram:660
-nvram:root:nvram:660
-misc/rtc:root:audio:0664
-rtc:root:audio:0664
-
-tts/*:root:dialout:0660
-bluetooth/rfcomm/*:root:dialout:0660
-tty[BCDEFHILMPRSTUVWX][0-9]*:root:dialout:0660
-ttyS[ACIR][0-9]*:root:dialout:0660
-ttyUSB[0-9]*:root:dialout:0660
-ttyACM[0-9]*:root:dialout:0660
-ippp[0-9]*:root:dialout:0660
-isdn[0-9]*:root:dialout:0660
-isdnctrl[0-9]*:root:dialout:0660
-capi[0-9.]*:root:dialout:0660
-dcbri[0-9]*:root:dialout:0660
-ircomm[0-9]*:root:dialout:0660
-rfcomm[0-9]*:root:dialout:0660
-tty:root:tty:0666
-
-snd/*:root:audio:0660
-sound/*:root:audio:0660
-admmidi*:root:audio:0660
-adsp*:root:audio:0660
-aload*:root:audio:0660
-amidi*:root:audio:0660
-amixer*:root:audio:0660
-audio*:root:audio:0660
-dmfm*:root:audio:0660
-dsp*:root:audio:0660
-audio*:root:audio:0660
-mixer*:root:audio:0660
-music:root:audio:0660
-sequencer*:root:audio:0660
-
-printers/*:root:lp:0660
-usb/lp[0-9]*:root:lp:0660
-usb/legousbtower[0-9]*:root:root:666
-lp[0-9]*:root:lp:0660
-parport[0-9]*:root:lp:0660
-irlpt[0-9]*:root:lp:0660
-usblp[0-9]*:root:lp:0660
-
-input/mice:root:root:0600
-input/mouse[0-9]*:root:root:0600
-input/js[0-9]*:root:root:0644
-input/*:root:root:0600
-mouse[0-9]*:root:root:0600
-js[0-9]*:root:root:0644
-
-dri/card[0-9]*:root:video:0660
-fb/*:root:video:0660
-fb[0-9]*:root:video:0660
-agpgart:root:video:0660
-nvidia*:root:video:0660
-
-v4l/*:root:video:0660
-video[0-9]*:root:video:0660
-radio[0-9]*:root:video:0660
-vbi[0-9]*:root:video:0660
-vtx[0-9]*:root:video:0660
-dvb/*:root:video:0660
-
-# block devices
-
-floppy/*:root:floppy:0660
-fd[0-9]*:root:floppy:0660
-cdemu/*:root:cdrom:0660
-pktcdvd[0-9]*:root:cdrom:0660
-
-ram[0-9]*:root:disk:0660
-raw/*:root:disk:0660
-
-ide/*/cd:root:cdrom:0660
-ide/*:root:disk:0660
-hd[a-s]:root:disk:0660
-hd[a-s][0-9]*:root:disk:0660
-
-scsi/*/cd:root:cdrom:0660
-scsi/*:root:disk:0660
-sd[a-z]:root:disk:0660
-sd[a-z][0-9]*:root:disk:0660
-sd[a-i][a-z]:root:disk:0660
-sd[a-i][a-z][0-9]*:root:disk:0660
-s[gr][0-9]*:root:disk:0660
-scd[0-9]*:root:cdrom:0660
-
-dasd[0-9]*:root:disk:0660
-ataraid[0-9]*:root:disk:0660
-
-loop/*:root:disk:0660
-loop[0-9]*:root:disk:0660
-md/*:root:disk:0660
-md[0-9]*:root:disk:0660
-dm-*:root:disk:0640
-
-ht[0-9]*:root:tape:0660
-nht[0-9]*:root:tape:0660
-pt[0-9]*:root:tape:0660
-npt[0-9]*:root:tape:0660
-st[0-9]*:root:tape:0660
-nst[0-9]*:root:tape:0660
-
-sgi_fetchop:root:root:666
-iseries/vcd*:root:disk:660
-iseries/vd*:root:disk:660
-
diff --git a/etc/udev/udev.permissions.gentoo b/etc/udev/udev.permissions.gentoo
deleted file mode 100644 (file)
index 51dd9f2..0000000
+++ /dev/null
@@ -1,205 +0,0 @@
-# /etc/udev/udev.permissions:  permission/ownership map for udev
-# $Header: /home/cvsroot/gentoo-x86/sys-fs/udev/files/udev.permissions,v 1.3 2004/01/01 03:41:24 azarah Exp $
-
-# console devices
-console:root:tty:0600
-tty:root:tty:0666
-tty[0-9]*:root:tty:0660
-vc/[0-9]*:root:tty:0660
-
-# pty devices
-#  Set this to 0660 if you only want users belonging to tty group
-#  to be able to allocate PTYs
-ptmx:root:tty:0666
-pty[p-za-e][0-9a-f]*:root:tty:0660
-tty[p-za-e][0-9a-f]*:root:tty:0660
-pty/m*:root:tty:0660
-vc/s*:root:tty:0660
-
-# serial+dialup devices
-ttyS*:root:tty:0660
-ippp*:root:tty:0660
-isdn*:root:tty:0660
-isdnctrl*:root:tty:0660
-capi*:root:tty:0660
-dcbri*:root:tty:0660
-ircomm*:root:tty:0660
-ttyUSB*:root:usb:0660
-tts/[0-9]*:root:tty:0660
-tts/USB[0-9]*:root:usb:0660
-
-# vc devices
-vcs:root:root:0600
-vcs[0-9]*:root:root:0600
-vcsa:root:root:0600
-vcsa[0-9]*:root:root:0600
-vcc/*:root:root:0600
-
-# memory devices
-random:root:root:0666
-urandom:root:root:0444
-mem:root:kmem:0640
-kmem:root:kmem:0640
-port:root:kmem:0640
-full:root:root:0666
-null:root:root:0666
-zero:root:root:0666
-
-# misc devices
-misc/nvram:root:root:0660
-misc/rtc:root:root:0664
-misc/inotify:root:root:0666
-
-# floppy devices
-fd[01]*:root:floppy:0660
-
-# audio devices
-dsp*:root:audio:0660
-audio*:root:audio:0660
-midi*:root:audio:0660
-mixer*:root:audio:0660
-sequencer*:root:audio:0660
-sound/*:root:audio:0660
-snd/*:root:audio:0660
-beep:root:audio:0660
-admm*:root:audio:0660
-adsp*:root:audio:0660
-aload*:root:audio:0660
-amidi*:root:audio:0660
-dmfm*:root:audio:0660
-dmmidi*:root:audio:0660
-sndstat:root:audio:0660
-
-# optical devices
-sr*:root:cdrom:660
-scd*:root:cdrom:660
-pcd*:root:cdrom:0660
-cdrom*:root:cdrom:0660
-dvd:root:cdrom:0660
-rdvd:root:cdrom:0660
-cdroms/*:root:cdrom:0660
-
-# pilot/palm devices
-pilot:root:uucp:0660
-
-# jaz devices
-jaz*:root:disk:0660
-
-# zip devices
-pocketzip*:root:disk:0660
-zip*:root:disk:0660
-
-# ls120 devices
-ls120:root:disk:0660
-ls120*:root:disk:0660
-
-# lp devices
-lp*:root:lp:0660
-parport*:root:lp:0660
-irlpt*:root:lp:0660
-usblp*:root:lp:0660
-usb/lp*:root:lp:0660
-
-# scanner devices
-scanner:root:root:0600
-usb/scanner*:root:root:0600
-
-# camera devices
-camera*:root:root:0600
-usb/dc2xx*:root:root:0600
-usb/mdc800*:root:root:0600
-
-# raw devices
-ram*:root:disk:660
-raw/*:root:disk:660
-
-# disk devices
-hd*:root:disk:660
-sd*:root:disk:660
-dasd*:root:disk:660
-ataraid*:root:disk:660
-loop*:root:disk:660
-md*:root:disk:660
-ide/*/*/*/*/*:root:disk:660
-discs/*/*:root:disk:660
-loop/*:root:disk:660
-md/*:root:disk:660
-
-# tape devices
-ht*:root:tape:0660
-nht*:root:tape:0660
-pt[0-9]*:root:tape:0660
-npt*:root:tape:0660
-st*:root:tape:0660
-nst*:root:tape:0660
-
-# dm devices
-dm-*:root:root:0640
-
-# memstick devices
-memstick*:root:root:0600
-
-# flash devices
-flash*:root:root:0600
-
-# diskonkey devices
-diskonkey*:root:disk:0660
-
-# rem_ide devices
-microdrive*:root:disk:0660
-
-# fb devices
-fb:root:root:0600
-fb[0-9]*:root:root:0600
-fb/*:root:root:0600
-
-# kbd devices
-kbd:root:root:0644
-
-# joystick devices
-js[0-9]*:root:root:0644
-djs[0-9]*:root:root:0644
-
-# v4l devices
-video*:root:video:0660
-radio*:root:video:0660
-winradio*:root:video:0660
-vtx*:root:video:0660
-vbi*:root:video:0660
-video/*:root:video:0660
-vttuner:root:video:0660
-v4l/*:root:video:0660
-
-# input devices
-input/event*:root:root:600
-input/ts*:root:root:600
-input/*:root:root:644
-
-# Sony Vaio Jogdial sonypi device
-sonypi:root:root:0666
-
-# gpm devices
-gpmctl:root:root:0700
-
-# dri devices
-nvidia*:root:video:0660
-3dfx*:root:video:0660
-dri/*:root:video:0660
-
-# mainboard devices
-apm_bios:root:root:0600
-
-# scsi devices
-sg*:root:disk:0660
-pg*:root:disk:0660
-cdwriter:root:disk:0660
-
-# usb devices
-usb/dabusb*:root:usb:0660
-usb/mdc800*:root:usb:0660
-usb/rio500:root:usb:0660
-usb/legousbtower*:root:usb:0660
-
-sgi_fetchop:root:root:666
-iseries/vcd*:root:disk:660
-iseries/vd*:root:disk:660
diff --git a/etc/udev/udev.permissions.redhat b/etc/udev/udev.permissions.redhat
deleted file mode 100644 (file)
index c966639..0000000
+++ /dev/null
@@ -1,194 +0,0 @@
-# /etc/udev/udev.permissions:  permission/ownership map for udev
-
-# console devices
-console:root:root:0600
-tty[0-9][0-9]*:root:tty:0660
-vc/[0-9]*:root:tty:0660
-
-# pty devices
-#  Set this to 0660 if you only want users belonging to tty group
-#  to be able to allocate PTYs
-ptmx:root:tty:0666
-tty:root:tty:0666
-pty[p-za-e][0-9a-f]*:root:tty:0660
-tty[p-za-e][0-9a-f]*:root:tty:0660
-pty/m*:root:tty:0660
-vc/s*:root:tty:0660
-
-# serial+dialup devices
-ttyS*:root:uucp:0660
-ippp*:root:root:0660
-isdn*:root:root:0660
-isdnctrl*:root:root:0660
-capi*:root:root:0660
-dcbri*:root:root:0660
-ircomm*:root:uucp:0660
-ttyUSB*:root:uucp:0660
-tts/[0-9]*:root:uucp:0660
-tts/USB[0-9]*:root:uucp:0660
-
-# vc devices
-vcs:vcsa:tty:0600
-vcs[0-9]*:vcsa:tty:0600
-vcsa:vcsa:tty:0600
-vcsa[0-9]*:vcsa:tty:0600
-vcc/*:vcsa:tty:0600
-
-# memory devices
-random:root:root:0666
-urandom:root:root:0444
-mem:root:kmem:0640
-kmem:root:kmem:0640
-port:root:kmem:0640
-full:root:root:0666
-null:root:root:0666
-zero:root:root:0666
-
-# misc devices
-nvram:root:root:0660
-rtc:root:root:0660
-
-# floppy devices
-fd[01]*:root:floppy:0660
-
-# audio devices
-dsp*:root:root:0660
-audio*:root:root:0660
-midi*:root:root:0660
-mixer*:root:root:0660
-sequencer*:root:root:0660
-sound/*:root:root:0660
-snd/*:root:root:0660
-beep:root:root:0660
-admm*:root:root:0660
-adsp*:root:root:0660
-aload*:root:root:0660
-amidi*:root:root:0660
-dmfm*:root:root:0660
-dmmidi*:root:root:0660
-sndstat:root:root:0660
-
-# optical devices
-sr*:root:disk:660
-scd*:root:disk:660
-pcd*:root:disk:0660
-disk*:root:disk:0660
-dvd:root:disk:0660
-rdvd:root:disk:0660
-cdroms/*:root:disk:0660
-
-# pilot/palm devices
-pilot:root:uucp:0660
-
-# jaz devices
-jaz*:root:disk:0660
-
-# zip devices
-pocketzip*:root:disk:0660
-zip*:root:disk:0660
-
-# ls120 devices
-ls120:root:disk:0660
-ls120*:root:disk:0660
-
-# lp devices
-lp*:root:lp:0660
-parport*:root:lp:0660
-irlpt*:root:lp:0660
-usblp*:root:lp:0660
-usb/lp*:root:lp:0660
-
-# scanner devices
-scanner:root:root:0600
-usb/scanner*:root:root:0600
-
-# camera devices
-camera*:root:root:0600
-usb/dc2xx*:root:root:0600
-usb/mdc800*:root:root:0600
-
-# raw devices
-ram*:root:disk:660
-raw/*:root:disk:660
-
-# disk devices
-hd*:root:disk:660
-sd*:root:disk:660
-dasd*:root:disk:660
-ataraid*:root:disk:660
-loop*:root:disk:660
-md*:root:disk:660
-ide/*/*/*/*/*:root:disk:660
-discs/*/*:root:disk:660
-loop/*:root:disk:660
-md/*:root:disk:660
-
-# tape devices
-ht*:root:disk:0660
-nht*:root:disk:0660
-pt[0-9]*:root:disk:0660
-npt*:root:disk:0660
-st*:root:disk:0660
-nst*:root:disk:0660
-
-# dm devices
-dm-*:root:root:0640
-
-# memstick devices
-memstick*:root:root:0600
-
-# flash devices
-flash*:root:root:0600
-
-# diskonkey devices
-diskonkey*:root:disk:0660
-
-# rem_ide devices
-microdrive*:root:disk:0660
-
-# fb devices
-fb:root:root:0600
-fb[0-9]*:root:root:0600
-fb/*:root:root:0600
-
-# kbd devices
-kbd:root:root:0644
-
-# joystick devices
-js[0-9]*:root:root:0644
-djs[0-9]*:root:root:0644
-
-# v4l devices
-video*:root:root:0660
-radio*:root:root:0660
-winradio*:root:root:0660
-vtx*:root:root:0660
-vbi*:root:root:0660
-video/*:root:root:0660
-vttuner:root:root:0660
-v4l/*:root:root:0660
-
-# input devices
-input/*:root:root:644
-
-# gpm devices
-gpmctl:root:root:0700
-
-# dri devices
-nvidia*:root:root:0660
-3dfx*:root:root:0660
-dri/*:root:root:0660
-
-# mainboard devices
-apm_bios:root:root:0600
-
-# scsi devices
-sg*:root:disk:0660
-pg*:root:disk:0660
-cdwriter:root:disk:0660
-
-# usb devices
-usb/dabusb*:root:usb:0660
-usb/mdc800*:root:usb:0660
-usb/rio500:root:usb:0660
-
diff --git a/etc/udev/udev.permissions.slackware b/etc/udev/udev.permissions.slackware
deleted file mode 100644 (file)
index 2edc1aa..0000000
+++ /dev/null
@@ -1,133 +0,0 @@
-#name:user:group:mode
-pl2303:500:500:0666
-visor:root:uucp:0666
-camera*:500:500:0666
-
-# console devices
-console:root:tty:0600
-tty[0-9][0-9]*:root:tty:0666
-vcs*:root:tty:0620
-tty[CIS]*:root:uucp:0660
-ttyUB[0-9]:root:uucp:0660
-ttyUSB0:root:uucp:0660
-ttyUSB1:root:uucp:0666
-
-# pty devices
-ptmx:root:tty:0666
-pty[p-za-e][0-9a-f]*:root:tty:0666
-tty[p-za-e][0-9a-f]*:root:tty:0666
-cu[abiu]*:root:uucp:0660
-
-# sound devices
-audio*:root:sys:0662
-beep:root:root:0644
-dsp*:root:sys:0662
-midi*:root:sys:0662
-mixer*:root:sys:0666
-music:root:sys:0662
-sequencer*:root:sys:0662
-snd/*:root:root:0666
-sndstat:root:sys:0662
-speaker:root:root:0644
-sound/*:root:root:0666
-admmidi*:root:root:0666
-adsp*:root:root:0666
-aload*:root:root:0666
-amidi*:root:root:0666
-amixer*:root:root:0666
-
-# input devices (mouse, joystick, etc)
-input/*:root:root:0644
-input/js*:root:games:0666
-djs[0-3]:root:games:0660
-psaux:root:sys:0660
-crash:roor:root:0660
-logibm:root:sys:0660
-jbm:root:sys:0660
-hwtrap:root:root:0644
-inportbm:root:sys:0660
-sexec:root:root:0660
-jsflash:roo:root:0660
-
-# power manager device
-apm_bios:root:root:0644
-
-# printer device
-lp[0-9]:root:lp:0660
-parport*:root:root:0660
-
-# video devices
-dri/card[0-9]*:root:root:0666
-fb[0-9]:root:tty:0660
-agpgart:root:root:0660
-nvidia*:root:root:0666
-video*:root:sys:0660
-
-# DISK devices
-ed[ab]*:root:disk:0640
-gscd0:root:disk:0640
-initrd:root:disk:0640
-lmscd:root:disk:0640
-mcd*:root:disk:0640
-md*:root:disk:0660
-mtd*:root:disk:0640
-userdma:root:root:0660
-
-# floppy devices
-fd[0-3]*:root:floppy:0660
-
-# IDE devices (hd, cdrom)
-hd*:root:disk:0660
-ht0:root:disk:0640
-
-# RAID IDE
-ataraid[0-9]*:root:disk:0660
-ataraid/*:root:disk:0660
-
-# SCSI devices
-scsi/*/cd:root:disk:0660
-scsi/*:root:disk:0660
-sd[a-h]*:root:disk:0640
-s[rt][0-9]*:root:disk:0640
-scd*:root:disk:0660
-
-# generic scsi devices
-sg*:root:root:0600
-
-# old CD-ROM
-sbpcd*:root:disk:0640
-
-# loop devices
-loop[0-9]*:root:disk:0660
-
-# network block devices
-nb[0-7]:root:disk:0660
-nht0:root:disk:0640
-npt[0-3]:root:disk:0660
-n[qrs]*:root:disk:0640
-
-# memory access devices
-kmem:root:kmem:0640
-mem:root:kmem:0640
-null:root:sys:0666
-nvram:root:root:0640
-port:root:kmem:0640
-ram[0-9]*:root:disk:0640
-random:root:root:0644
-rtc:root:root:0444
-urandom:root:root:0644
-full:root:sys:0666
-zero:root:root:0664
-raw/*:root:disk:0660
-modreq:root:root:0644
-msr:root:root:0660
-profile*:root:root:0640
-
-# ISDN devices
-isdn*:root:tty:0660
-
-# net devices
-ippp*:root:root:0644
-ipstate:root:root:0660
-spx:root:root:0644
-fwmonitor:root:root:0660
diff --git a/etc/udev/udev.rules.debian b/etc/udev/udev.rules.debian
deleted file mode 100644 (file)
index 65a89ae..0000000
+++ /dev/null
@@ -1,79 +0,0 @@
-# There are a number of modifiers that are allowed to be used in some
-# of the different fields. They provide the following subsitutions:
-#
-# %n the "kernel number" of the device.
-#    For example, 'sda3' has a "kernel number" of '3'
-# %e the smallest number for that name which does not matches an existing node
-# %k the kernel name for the device.
-# %M the kernel major number for the device
-# %m the kernel minor number for the device
-# %b the bus id for the device
-# %c the string returned by the PROGRAM
-# %s{filename} the content of a sysfs attribute.
-# %% the '%' char itself.
-#
-
-# permissions for IDE CD devices
-BUS="ide", KERNEL="hd[a-z]", SYSFS{removable}="1", PROGRAM="/bin/cat /proc/ide/%k/media", RESULT="cdrom*", NAME="%k", MODE="0660", GROUP="cdrom"
-
-# permissions for IDE floppy devices
-BUS="ide", KERNEL="hd[a-z]", SYSFS{removable}="1", PROGRAM="/bin/cat /proc/ide/%k/media", RESULT="floppy*", NAME="%k", MODE="0660", GROUP="floppy"
-
-# permissions for SCSI CD devices
-BUS="scsi", KERNEL="sr[0-9]*", SYSFS{type}="5", NAME="scd%n", MODE="0660", GROUP="cdrom", SYMLINK="sr%n"
-BUS="scsi", KERNEL="sg[0-9]*", SYSFS{type}="5", NAME="%k", MODE="0660", GROUP="cdrom"
-
-
-# USB devices
-BUS="usb", KERNEL="hiddev*",   NAME="usb/%k"
-BUS="usb", KERNEL="auer*",     NAME="usb/%k"
-BUS="usb", KERNEL="legousbtower*", NAME="usb/%k"
-BUS="usb", KERNEL="dabusb*",   NAME="usb/%k"
-BUS="usb", KERNEL="lp[0-9]*",  NAME="usb/%k"
-BUS="usb", KERNEL="cpad[0-9]*",        NAME="usb/%k"
-
-KERNEL="dvb*",         PROGRAM="/etc/udev/scripts/dvb.sh %k", NAME="%c"
-
-KERNEL="card*",                NAME="dri/card%n"
-KERNEL="cdemu[0-9]*",  NAME="cdemu/%n"
-KERNEL="pktcdvd[0-9]*",        NAME="pktcdvd/%n"
-KERNEL="pktcdvd",      NAME="pktcdvd/control"
-KERNEL="cpu[0-9]*",    NAME="cpu/%n/cpuid"
-KERNEL="msr[0-9]*",    NAME="cpu/%n/msr"
-KERNEL="microcode",    NAME="cpu/microcode"
-
-# ALSA devices
-KERNEL="controlC[0-9]*", NAME="snd/%k"
-KERNEL="hwC[D0-9]*",   NAME="snd/%k"
-KERNEL="pcmC[D0-9cp]*",        NAME="snd/%k"
-KERNEL="midiC[D0-9]*", NAME="snd/%k"
-KERNEL="timer",                NAME="snd/%k"
-KERNEL="seq",          NAME="snd/%k"
-
-# input devices
-KERNEL="mice",         NAME="input/%k"
-KERNEL="mouse[0-9]*",  NAME="input/%k"
-KERNEL="event[0-9]*",  NAME="input/%k", PROGRAM="/etc/udev/scripts/inputdev.sh %k", RESULT="inputdev", MODE="0664", GROUP="video"
-KERNEL="event[0-9]*",  NAME="input/%k"
-KERNEL="js[0-9]*",     NAME="input/%k"
-KERNEL="ts[0-9]*",     NAME="input/%k"
-KERNEL="uinput",       NAME="input/%k"
-
-KERNEL="tap[0-9]*",    NAME="net/%k"
-KERNEL="tun",          NAME="net/%k"
-
-# CAPI devices
-KERNEL="capi",         NAME="capi20", SYMLINK="isdn/capi20"
-KERNEL="capi[0-9]*",   NAME="capi/%n"
-
-# Zaptel
-KERNEL="zapctl",       NAME="zap/ctl"
-KERNEL="zaptimer",     NAME="zap/timer"
-KERNEL="zapchannel",   NAME="zap/channel"
-KERNEL="zappseudo",    NAME="zap/pseudo"
-KERNEL="zap[0-9]*",    NAME="zap/%n"
-
-# device mapper creates its own device nodes, so ignore these
-KERNEL="dm-[0-9]*",    NAME=""
-KERNEL="device-mapper",        NAME="mapper/control"
-
diff --git a/etc/udev/udev.rules.gentoo b/etc/udev/udev.rules.gentoo
deleted file mode 100644 (file)
index 6a53e88..0000000
+++ /dev/null
@@ -1,149 +0,0 @@
-# /etc/udev/udev.rules:  device naming rules for udev
-#
-# Gentoo specific rules, based a bit on devfs rules, but much simpler.
-#
-# There are a number of modifiers that are allowed to be used in some of the
-# fields.  See the udev man page for a full description of them.
-
-
-###########################################################
-#
-# For devfs similar /dev layout (neater)
-#
-###########################################################
-
-# cdrom symlinks and other good cdrom naming
-BUS="ide",  KERNEL="hd[a-z]",  PROGRAM="/etc/udev/scripts/cdsymlinks.sh %k", SYMLINK="%c{1} %c{2} %c{3} %c{4} %c{5} %c{6}"
-BUS="scsi", KERNEL="sr[0-9]*",  PROGRAM="/etc/udev/scripts/cdsymlinks.sh %k", SYMLINK="%c{1} %c{2} %c{3} %c{4} %c{5} %c{6}"
-BUS="scsi", KERNEL="scd[a-z]", PROGRAM="/etc/udev/scripts/cdsymlinks.sh %k", SYMLINK="%c{1} %c{2} %c{3} %c{4} %c{5} %c{6}"
-
-# devfs-names for ide-devices (uncomment only one)
-#  /dev/ide/.../{disc,cd} and /dev/{cdroms,discs}/* type names
-BUS="ide", KERNEL="hd*", PROGRAM="/etc/udev/scripts/ide-devfs.sh %k %b %n", NAME="%k", SYMLINK="%c{1} %c{2}", GROUP="%c{3}"
-
-# dri devices
-KERNEL="card*",                NAME="dri/card%n"
-
-# alsa devices
-KERNEL="controlC[0-9]*", NAME="snd/%k"
-KERNEL="hw[CD0-9]*",    NAME="snd/%k"
-KERNEL="pcm[CD0-9cp]*",         NAME="snd/%k"
-KERNEL="midiC[D0-9]*",  NAME="snd/%k"
-KERNEL="timer",                 NAME="snd/%k"
-KERNEL="seq",           NAME="snd/%k"
-
-# capi devices
-KERNEL="capi",         NAME="capi20", SYMLINK="isdn/capi20"
-KERNEL="capi*",                NAME="capi/%n"
-
-# cpu devices
-KERNEL="cpu[0-9]*",    NAME="cpu/%n/cpuid"
-KERNEL="msr[0-9]*",    NAME="cpu/%n/msr"
-KERNEL="microcode",    NAME="cpu/microcode"
-
-# dm devices (ignore them)
-KERNEL="dm-[0-9]*",    NAME=""
-# create a symlink named after the device map name
-# note devmap_name comes with extras/multipath
-#KERNEL="dm-[0-9]*",   PROGRAM="/sbin/devmap_name %M %m", NAME="%k", SYMLINK="%c"
-KERNEL="device-mapper",        NAME="mapper/control"
-
-# fb devices
-KERNEL="fb[0-9]*",     NAME="fb/%n", SYMLINK="%k"
-
-# floppy devices
-KERNEL="fd[0-9]*",     NAME="floppy/%n", SYMLINK="%k"
-
-# i2c devices
-KERNEL="i2c-[0-9]*",   NAME="i2c/%n", SYMLINK="%k"
-
-# input devices
-KERNEL="mice",         NAME="input/%k"
-KERNEL="mouse*",       NAME="input/%k"
-KERNEL="event*",       NAME="input/%k"
-KERNEL="js*",          NAME="input/%k"
-KERNEL="ts*",          NAME="input/%k"
-
-# loop devices
-KERNEL="loop[0-9]*",   NAME="loop/%n", SYMLINK="%k"
-
-# md block devices
-KERNEL="md[0-9]*",     NAME="md/%n", SYMLINK="%k"
-
-# misc devices
-KERNEL="agpgart",      NAME="misc/%k", SYMLINK="%k"
-KERNEL="psaux",                NAME="misc/%k", SYMLINK="%k"
-KERNEL="rtc",          NAME="misc/%k", SYMLINK="%k"
-KERNEL="uinput",       NAME="misc/%k", SYMLINK="%k"
-KERNEL="inotify",      NAME="misc/%k", SYMLINK="%k"
-
-# netlink devices
-KERNEL="route",                NAME="netlink/%k"
-KERNEL="skip",         NAME="netlink/%k"
-KERNEL="usersock",     NAME="netlink/%k"
-KERNEL="fwmonitor",    NAME="netlink/%k"
-KERNEL="tcpdiag",      NAME="netlink/%k"
-KERNEL="nflog",                NAME="netlink/%k"
-KERNEL="xfrm",         NAME="netlink/%k"
-KERNEL="arpd",         NAME="netlink/%k"
-KERNEL="route6",       NAME="netlink/%k"
-KERNEL="ip6_fw",       NAME="netlink/%k"
-KERNEL="dnrtmsg",      NAME="netlink/%k"
-KERNEL="tap*",         NAME="netlink/%k"
-
-# network devices
-KERNEL="tun",          NAME="net/%k"
-
-# pty devices
-KERNEL="pty[p-za-e][0-9a-f]*", NAME="pty/m%n", SYMLINK="%k"
-KERNEL="tty[p-za-e][0-9a-f]*", NAME="pty/s%n", SYMLINK="%k"
-
-# ramdisk devices
-KERNEL="ram[0-9]*",    NAME="rd/%n", SYMLINK="%k"
-
-# raw devices
-KERNEL="raw[0-9]*",    NAME="raw/%k"
-
-# sound devices
-KERNEL="adsp",           NAME="sound/%k", SYMLINK="%k"
-KERNEL="adsp[0-9]*",     NAME="sound/%k", SYMLINK="%k"
-KERNEL="audio",                  NAME="sound/%k", SYMLINK="%k"
-KERNEL="audio[0-9]*",    NAME="sound/%k", SYMLINK="%k"
-KERNEL="dsp",            NAME="sound/%k", SYMLINK="%k"
-KERNEL="dsp[0-9]*",      NAME="sound/%k", SYMLINK="%k"
-KERNEL="mixer",                  NAME="sound/%k", SYMLINK="%k"
-KERNEL="mixer[0-9]*",    NAME="sound/%k", SYMLINK="%k"
-KERNEL="sequencer",      NAME="sound/%k", SYMLINK="%k"
-KERNEL="sequencer[0-9]*", NAME="sound/%k", SYMLINK="%k"
-
-# tty devices
-KERNEL="tty[0-9]*",    NAME="vc/%n",  SYMLINK="%k"
-KERNEL="ttyS[0-9]*",   NAME="tts/%n", SYMLINK="%k"
-KERNEL="ttyUSB[0-9]*", NAME="tts/USB%n"
-
-# usb devices
-KERNEL="hiddev*",              NAME="usb/%k"
-KERNEL="auer*",                        NAME="usb/%k"
-KERNEL="legousbtower*",                NAME="usb/%k"
-KERNEL="dabusb*",              NAME="usb/%k"
-BUS="usb", KERNEL="lp[0-9]*",  NAME="usb/%k"
-
-# vc devices
-KERNEL="vcs",          NAME="vcc/0",   SYMLINK="%k"
-KERNEL="vcs[0-9]*",    NAME="vcc/%n",  SYMLINK="%k"
-KERNEL="vcsa",         NAME="vcc/a0",  SYMLINK="%k"
-KERNEL="vcsa[0-9]*",   NAME="vcc/a%n", SYMLINK="%k"
-
-# v4l devices
-KERNEL="video[0-9]*",  NAME="v4l/video%n",     SYMLINK="video%n"
-KERNEL="radio[0-9]*",  NAME="v4l/radio%n"
-KERNEL="vbi[0-9]*",    NAME="v4l/vbi%n",       SYMLINK="vbi%n"
-KERNEL="vtx[0-9]*",    NAME="v4l/vtx%n"
-
-# Asterix Zaptel devices
-KERNEL="zapctl",       NAME="zap/ctl"
-KERNEL="zaptimer",     NAME="zap/timer"
-KERNEL="zapchannel",   NAME="zap/channel"
-KERNEL="zappseudo",    NAME="zap/pseudo"
-KERNEL="zap[0-9]*",    NAME="zap/%n"
-
diff --git a/etc/udev/udev.rules.redhat b/etc/udev/udev.rules.redhat
deleted file mode 100644 (file)
index 0a43358..0000000
+++ /dev/null
@@ -1,125 +0,0 @@
-# /etc/udev/udev.rules:  device naming rules for udev
-#
-# There are a number of modifiers that are allowed to be used in some of the
-# fields.  See the udev man page for a full description of them.
-
-###########################################################
-#
-# Add your own rules here (examples are commented)
-#
-###########################################################
-
-# Looking for scsi bus id 42:0:0:1
-#BUS="scsi", PROGRAM="/bin/echo -n test-%b", RESULT="test-42:0:0:1", NAME="%c"
-
-# A usb camera.
-#BUS="usb", SYSFS_vendor="FUJIFILM", SYSFS_model="M100", NAME="camera%n"
-
-# USB Epson printer to be called lp_epson
-#BUS="usb", SYSFS_serial="HXOLL0012202323480", NAME="lp_epson"
-
-# USB HP printer to be called lp_hp
-#BUS="usb", SYSFS_serial="W09090207101241330", NAME="lp_hp"
-
-# sound card with PCI bus id 00:0b.0 to be the first sound card
-#BUS="pci", ID="00:0b.0", NAME="dsp"
-
-# sound card with PCI bus id 00:07.1 to be the second sound card
-#BUS="pci", ID="00:07.1", NAME="dsp1"
-
-# USB mouse plugged into the third port of the first hub to be called mouse0
-#BUS="usb", PLACE="1.3", NAME="mouse0"
-
-# USB tablet plugged into the third port of the second hub to be called mouse1
-#BUS="usb", PLACE="2.3", NAME="mouse1"
-#BUS="usb", PLACE="2.4", NAME="mouse2"
-
-# ttyUSB1 should always be called visor
-#KERNEL="ttyUSB1", NAME="visor"
-#KERNEL="ttyUSB0", NAME="pl2303"
-
-
-###########################################################
-#
-# For devfs similar /dev layout (neater)
-#
-###########################################################
-
-# devfs-names for ide-devices (uncomment only one)
-#  /dev/ide/.../{disc,cd} and /dev/{cdroms,discs}/* type names
-BUS="ide", KERNEL="hd*", PROGRAM="/etc/udev/scripts/ide-devfs.sh %k %b %n", NAME="%k", SYMLINK="%c{1} %c{2}"
-
-# alsa devices
-KERNEL="controlC[0-9]*", NAME="snd/%k"
-KERNEL="hw[CD0-9]*",     NAME="snd/%k"
-KERNEL="pcm[CD0-9cp]*",  NAME="snd/%k"
-KERNEL="midi[CD0-9]*",   NAME="snd/%k"
-KERNEL="timer",          NAME="snd/%k"
-KERNEL="seq",            NAME="snd/%k"
-
-# dm devices (ignore them)
-KERNEL="dm-[0-9]*",     NAME=""
-KERNEL="device-mapper", NAME="mapper/control"
-
-# fb devices
-KERNEL="fb[0-9]*", NAME="fb/%n", SYMLINK="%k"
-
-# floppy devices
-KERNEL="fd[0-9]*", NAME="floppy/%n", SYMLINK="%k"
-
-# i2c devices
-KERNEL="i2c-[0-9]*", NAME="i2c/%n", SYMLINK="%k"
-
-# input devices
-KERNEL="mice",        NAME="input/mice"
-KERNEL="mouse[0-9]*", NAME="input/mouse%n"
-KERNEL="event[0-9]*", NAME="input/event%n"
-KERNEL="js*",         NAME="input/%k"
-KERNEL="ts*",         NAME="input/%k"
-
-# loop devices
-KERNEL="loop[0-9]*", NAME="loop/%n", SYMLINK="%k"
-
-# md block devices
-KERNEL="md[0-9]*", NAME="md/%n", SYMLINK="%k"
-
-# misc devices
-KERNEL="rtc",     NAME="misc/%k", SYMLINK="%k"
-KERNEL="psaux",   NAME="misc/%k", SYMLINK="%k"
-KERNEL="agpgart", NAME="misc/%k", SYMLINK="%k"
-KERNEL="rtc",     NAME="misc/%k", SYMLINK="%k"
-KERNEL="psaux",   NAME="misc/%k", SYMLINK="%k"
-KERNEL="uinput",  NAME="misc/%k", SYMLINK="%k"
-
-# pty devices
-KERNEL="pty[p-za-e][0-9a-f]*", NAME="pty/m%n", SYMLINK="%k"
-KERNEL="tty[p-za-e][0-9a-f]*", NAME="tty/s%n", SYMLINK="%k"
-
-# ramdisk devices
-KERNEL="ram[0-9]*", NAME="rd/%n", SYMLINK="%k"
-
-# sound devices
-KERNEL="adsp",       NAME="sound/adsp"        SYMLINK="%k"
-KERNEL="audio",      NAME="sound/audio",      SYMLINK="%k"
-KERNEL="dsp",        NAME="sound/dsp",        SYMLINK="%k"
-KERNEL="mixer",      NAME="sound/mixer",      SYMLINK="%k"
-KERNEL="sequencer",  NAME="sound/sequencer",  SYMLINK="%k"
-KERNEL="sequencer2", NAME="sound/sequencer2", SYMLINK="%k"
-
-# tty devices
-KERNEL="tty[0-9]*",    NAME="vc/%n",  SYMLINK="%k"
-KERNEL="ttyS[0-9]*",   NAME="tts/%n", SYMLINK="%k"
-KERNEL="ttyUSB[0-9]*", NAME="tts/USB%n"
-
-# vc devices
-KERNEL="vcs",        NAME="vcc/0",   SYMLINK="%k"
-KERNEL="vcs[0-9]*",  NAME="vcc/%n",  SYMLINK="%k"
-KERNEL="vcsa",       NAME="vcc/a0",  SYMLINK="%k"
-KERNEL="vcsa[0-9]*", NAME="vcc/a%n", SYMLINK="%k"
-
-# v4l devices
-KERNEL="video[0-9]*", NAME="v4l/video%n"
-KERNEL="radio[0-9]*", NAME="v4l/radio%n"
-KERNEL="vbi[0-9]*",   NAME="v4l/vbi%n"
-KERNEL="vtx[0-9]*",   NAME="v4l/vtx%n"
-