From: David Brownell <david-b@pacbell.net>
To: linux-hotplug@vger.kernel.org
Subject: SCSI hotplug on 2.5.50 ....
Date: Fri, 29 Nov 2002 21:13:11 +0000 [thread overview]
Message-ID: <marc-linux-hotplug-103860643415190@msgid-missing> (raw)
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
reply other threads:[~2002-11-29 21:13 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-linux-hotplug-103860643415190@msgid-missing \
--to=david-b@pacbell.net \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.