From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jim Gifford Date: Tue, 15 Mar 2005 06:53:23 +0000 Subject: Re: Udev question PROGRAM= question Message-Id: <42368663.2010803@jg555.com> List-Id: References: <42364AA2.8080306@jg555.com> In-Reply-To: <42364AA2.8080306@jg555.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Kay Sievers wrote: >On Mon, 2005-03-14 at 18:38 -0800, Jim Gifford wrote: > > >>If I run a program during the rules creation, example rule >> KERNEL="fd[0-9]*", PROGRAM="/etc/udev/scripts/floppy-devices.sh %k" >>When the device gets removed, how do I tell it to remove everything, or >>run the same program, to remove the /dev entries?? >> >> > >PROGRAM= is used to return a string that can be matched against with >RESULT=, or be used to set the name of a node with %c. You should not do >anything else on with a callout. > > > Kay, let me rephrase my response. The output of my script is the following # ./* fd0 fd0 b 2 0 fd0u360 b 2 12 fd0u720 b 2 16 fd0u800 b 2 120 fd0u820 b 2 52 fd0u830 b 2 68 fd0u1040 b 2 84 fd0u1120 b 2 88 fd0u1440 b 2 28 fd0u1600 b 2 124 fd0u1680 b 2 44 fd0u1722 b 2 60 fd0u1743 b 2 76 fd0u1760 b 2 96 fd0u1840 b 2 116 fd0u1920 b 2 100 fd0u2880 b 2 32 fd0u3200 b 2 104 fd0u3520 b 2 108 fd0u3840 b 2 112 What would my udev rule be? -- ---- Jim Gifford maillist@jg555.com ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ 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