From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Tue, 15 Mar 2005 02:54:43 +0000 Subject: Re: Udev question PROGRAM= question Message-Id: <1110855283.6630.6.camel@localhost.localdomain> 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 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. On "remove", udev will remove the node for you and no callout will run. Kay ------------------------------------------------------- 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