From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Marco d'Itri" Date: Tue, 27 Jan 2004 00:19:22 +0000 Subject: Updates config files Message-Id: <20040127001922.GA14116@wonderland.linux.it> MIME-Version: 1 Content-Type: multipart/mixed; boundary="mYCpIKhGyMATD0i+" List-Id: To: linux-hotplug@vger.kernel.org --mYCpIKhGyMATD0i+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline I believe these are reasonably complete for a normal system, with the exception of scsi-devfs.sh which still needs a lot of work. BTW, ide-devfs.sh is broken because it populates discs/ and cdroms/ without checking if the SCSI script already created links there. -- ciao, | Marco | [4326 inK/P7I0FuS4s] --mYCpIKhGyMATD0i+ Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="udev.permissions" # 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/rtc:root:audio:0660 tts/*:root:dialout:0660 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 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 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/*:root:root:0644 js:root:root:0644 djs:root:root:0644 dri/card[0-9]*:root:video:0660 fb/*:root:video:0620 agpgart: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 # block devices floppy/*:root:floppy:0660 fd[0-9]*:root:floppy:0660 ram[0-9]*:root:disk:0660 raw/*:root:disk:0660 ide/*:root:disk:0660 hd[a-s][0-9]*:root:disk:0660 scsi/*:root:disk:0660 sd[a-z][0-9]*:root:disk:0660 sd[a-i][a-z][0-9]*:root:disk:0660 s[grt][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 --mYCpIKhGyMATD0i+ Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="udev.rules" # 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' # %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. (Note, this doesn't work within # the PROGRAM field for the obvious reason.) # %% - the '%' char itself. # # IDE block devices BUS="ide", KERNEL="hd*", PROGRAM="/etc/udev/ide-devfs.sh %k %b %n", NAME="%1c", SYMLINK="%k %2c" # SCSI block devices BUS="scsi", KERNEL="sd[a-z][0-9]*", PROGRAM="/etc/udev/scsi-devfs.sh %k %b %n", NAME="%1c", SYMLINK="%k %2c" BUS="scsi", KERNEL="sd[a-i][a-z][0-9]*", PROGRAM="/etc/udev/scsi-devfs.sh %k %b %n", NAME="%1c", SYMLINK="%k %2c" BUS="scsi", KERNEL="s[grt][0-9]*", PROGRAM="/etc/udev/scsi-devfs.sh %k %b %n", NAME="%1c", SYMLINK="%k %2c" BUS="scsi", KERNEL="scd[0-9]*", PROGRAM="/etc/udev/scsi-devfs.sh %k %b %n", NAME="%1c", SYMLINK="%k %2c" BUS="scsi", KERNEL="st[0-9]*", PROGRAM="/etc/udev/scsi-devfs.sh %k %b %n", NAME="%1c", SYMLINK="%k %2c" BUS="scsi", KERNEL="nst[0-9]*", PROGRAM="/etc/udev/scsi-devfs.sh %k %b %n", NAME="%1c", SYMLINK="%k %2c" # block devices KERNEL="md[0-9]*", NAME="md/%n", SYMLINK="%k" KERNEL="loop[0-9]*", NAME="loop/%n" #, SYMLINK="%k" # tty devices KERNEL="tty[0-9]*", NAME="vc/%n" KERNEL="ttyS[0-9]*", NAME="tts/%n" KERNEL="ttyUSB[0-9]*", NAME="tts/USB%n" # vc devices KERNEL="vcs", NAME="vcc/0" KERNEL="vcs[0-9]*", NAME="vcc/%n" KERNEL="vcsa", NAME="vcc/a0" KERNEL="vcsa[0-9]*", NAME="vcc/a%n" # v4l devices KERNEL="video0", NAME="v4l/video%n", SYMLINK="video" KERNEL="video[0-9]*", NAME="v4l/video%n" KERNEL="radio0", NAME="v4l/radio%n", SYMLINK="radio" KERNEL="radio[0-9]*", NAME="v4l/radio%n" KERNEL="vbi0", NAME="v4l/vbi%n", SYMLINK="vbi" KERNEL="vbi[0-9]*", NAME="v4l/vbi%n" KERNEL="vtx0", NAME="v4l/vtx%n", SYMLINK="vtx" KERNEL="vtx[0-9]*", NAME="v4l/vtx%n" # misc devices KERNEL="apm_bios", NAME="misc/apm_bios", SYMLINK="apm_bios" KERNEL="agpgart", NAME="misc/agpgart", SYMLINK="agpgart" KERNEL="psaux", NAME="misc/psaux" #, SYMLINK="psaux" KERNEL="rtc", NAME="misc/rtc", SYMLINK="rtc" KERNEL="card[0-9]*", NAME="dri/card%n" KERNEL="i2c-[0-9]*", NAME="i2c/%n" KERNEL="ram[0-9]*", NAME="rd/%n" #, SYMLINK="%k" KERNEL="lp[0-9]*", NAME="printers/%n" # sound 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" KERNEL="audio*", NAME="sound/%k" KERNEL="dsp*", NAME="sound/%k" KERNEL="adsp*", NAME="sound/%k" KERNEL="midi*", NAME="sound/%k" KERNEL="mixer*", NAME="sound/%k" KERNEL="sequencer*", NAME="sound/%k" KERNEL="amidi*", NAME="sound/%k" KERNEL="dmmidi*", NAME="sound/%k" KERNEL="admmidi*", NAME="sound/%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" # device mapper creates its own device nodes so ignore these KERNEL="dm-[0-9]*", NAME="" --mYCpIKhGyMATD0i+ Content-Type: application/x-sh Content-Disposition: attachment; filename="scsi-devfs.sh" Content-Transfer-Encoding: quoted-printable #!/bin/sh -e=0A# Inspired from a script by Remco = =2E=0A=0A# BUS=3D"scsi", KERNEL=3D"sd[a-z][0-9]*", PROGRAM=3D"/etc/udev/scs= i-devfs.sh %k %b %n", NAME=3D"%1c", SYMLINK=3D"%k %2c"=0A=0A# the format is= "HOST:BUS:TARGET:LUN"=0ASCSI_ID=3D$2=0AHOST=3D${SCSI_ID%%:*}=0ASCSI_ID=3D$= {SCSI_ID#*:}=0ABUS=3D${SCSI_ID%%:*} =0ASCSI_ID=3D${SCSI_ID#*:} =0ATARGET=3D= ${SCSI_ID%%:*} =0ASCSI_ID=3D${SCSI_ID#*:}=0ALUN=3D$SCSI_ID =0A=0A=0A# XXX I= think this is almost all wrong, but I do not own any SCSI device. --Md=0Ac= ase "$1" in=0Ascd*|sr*)=0A NAME=3Dcd=0A# XXX how can we get the number of t= he next free /dev/cdroms/cdromN name=0A# and create it without races?=0A# L= INK=3D"cdroms/cdrom"`get_next_number cdroms/cdrom`=0A ;;=0Asd*)=0A if [ "$3= " ]; then=0A NAME=3Dpart$3=0A else=0A NAME=3Ddisc=0A# XXX this is hard, b= ecause we need to link to the directory, not to the node=0A# LINK=3D"discs= /disc"`get_next_number discs/disc`=0A fi=0A ;;=0Anst*)=0A NAME=3Dmtan ;;=0A= st*)=0A NAME=3Dmt ;;=0Asg*|*)=0A NAME=3Dgeneric ;;=0Aesac=0A=0Aecho scsi/ho= st$HOST/bus$BUS/target$TARGET/lun$LUN/$NAME $LINK=0A=0Aexit 0=0A --mYCpIKhGyMATD0i+-- ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel