From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Dennedy Date: Thu, 20 Mar 2003 19:04:04 +0000 Subject: ieee1394 patch MIME-Version: 1 Content-Type: multipart/mixed; boundary="=-DfMWNi/1A1O4oEEwJ2Xd" Message-Id: List-Id: To: linux-hotplug@vger.kernel.org --=-DfMWNi/1A1O4oEEwJ2Xd Content-Type: text/plain Content-Transfer-Encoding: 7bit I am a member of the Linux 1394 team, and I have been improving hotplug capabilities of various ieee1394 modules. Below is my patch to the agent script. For two different classes of video camera, some applications require 2 modules: one for the control protocol and another for the streaming video. Therefore, you see I removed that break. Also, I added support for a module-specific script directory. This is especially useful for sbp2 to invoke the popular rescan-scsi-bus.sh script, /etc/hotplug/ieee1394/sbp2 script: #!/bin/bash if [ "${ACTION}" = "add" ]; then . rescan-scsi-bus.sh else . rescan-scsi-bus.sh -r fi Similarly, a dv1394 script could launch Kino on add, and a video1394 script could launch Coriander on add. --=-DfMWNi/1A1O4oEEwJ2Xd Content-Disposition: attachment; filename=hotplug-ieee1394-DRD.patch Content-Type: text/x-patch; name=hotplug-ieee1394-DRD.patch; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Index: etc/hotplug/ieee1394.agent =================================================================== RCS file: /cvsroot/linux-hotplug/admin/etc/hotplug/ieee1394.agent,v retrieving revision 1.8 diff -u -p -r1.8 ieee1394.agent --- etc/hotplug/ieee1394.agent 18 Jan 2003 01:27:07 -0000 1.8 +++ etc/hotplug/ieee1394.agent 20 Mar 2003 17:59:02 -0000 @@ -51,7 +51,7 @@ MATCH_VERSION=0x0008 # # stdin is "modules.ieee1394map" syntax -# on return, ONE matching module was added to $DRIVERS +# on return, all matching modules were added to $DRIVERS # ieee1394_map_modules () { @@ -82,7 +82,6 @@ ieee1394_map_modules () fi DRIVERS="$module $DRIVERS" - break done } @@ -103,6 +102,13 @@ add) mesg "... no drivers for $LABEL" exit 2 fi + + for MODULE in $DRIVERS + do + if [ -x $HOTPLUG_DIR/ieee1394/$MODULE ]; then + $HOTPLUG_DIR/ieee1394/$MODULE + fi + done if [ -x /sbin/devlabel ]; then /sbin/devlabel restart --=-DfMWNi/1A1O4oEEwJ2Xd-- ------------------------------------------------------- This SF.net email is sponsored by: Tablet PC. Does your code think in ink? You could win a Tablet PC. Get a free Tablet PC hat just for playing. What are you waiting for? http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en _______________________________________________ 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