* SCSI hotplug on 2.5.50 ....
@ 2002-11-29 21:13 David Brownell
0 siblings, 0 replies; only message in thread
From: David Brownell @ 2002-11-29 21:13 UTC (permalink / raw)
To: linux-hotplug
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
#
#
ACTIONd
#
DEVPATHÞvices/scsi0/0:0:0:0
#
cd /etc/hotplug
. hotplug.functions
case $ACTION in
add)
TYPE=$(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
handheld. Power & Color in a compact size!
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-11-29 21:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-29 21:13 SCSI hotplug on 2.5.50 David Brownell
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.