All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dan Dennedy <dan@dennedy.org>
To: linux-hotplug@vger.kernel.org
Subject: ieee1394 patch
Date: Thu, 20 Mar 2003 19:04:04 +0000	[thread overview]
Message-ID: <marc-linux-hotplug-104818802031249@msgid-missing> (raw)

[-- Attachment #1: Type: text/plain, Size: 732 bytes --]

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.


[-- Attachment #2: hotplug-ieee1394-DRD.patch --]
[-- Type: text/x-patch, Size: 1016 bytes --]

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

             reply	other threads:[~2003-03-20 19:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-20 19:04 Dan Dennedy [this message]
2003-03-20 19:49 ` ieee1394 patch Ben Collins
2003-03-20 20:02 ` Dan Dennedy
2003-04-18  1:56 ` David Brownell

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-104818802031249@msgid-missing \
    --to=dan@dennedy.org \
    --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.