From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Brownell Date: Fri, 29 Nov 2002 21:13:11 +0000 Subject: SCSI hotplug on 2.5.50 .... Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org What should /etc/hotplug/scsi.agent do better than this initial version does? Seems like some of the 'devlabel' or 'usbmount' functionality should layer on top of it... - Dave #!/bin/bash # # SCSI hotplug agent for 2.5 kernels # #=20 ACTION=ADd #=20 DEVPATH=DEvices/scsi0/0:0:0:0 # cd /etc/hotplug . hotplug.functions case $ACTION in add) TYPE=3D$(cat /sys/$DEVPATH/type) case "$TYPE" in # 2.5.50 kernel bug: strings end '\n\0' Direct-Access*) mesg "disk at $DEVPATH" ; modprobe sd_mod ;; CD-ROM*) mesg "cdrom at $DEVPATH" ; modprobe sr_mod ;; *) mesg "how to add a $TYPE at $DEVPATH ??" ;; esac ;; *) debug_mesg SCSI $ACTION event not supported exit 1 ;; esac ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T=20 handheld. Power & Color in a compact size!=20 http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en _______________________________________________ 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