From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Williams Date: Tue, 09 Jul 2002 17:29:58 +0000 Subject: Re: How to hot unplug? Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org mingd@oeone.com said: > thanks. And I found out $REMOVER works. But can someone tell me the > rationale behind using $REMOVER instead of using "remove"? The REMOVER variable is set to be a command to execute when the device is removed. The shell script equivalent of a function pointer:-) This is very much faster then all the lookups and matching that is done on device add, and is easily tailored to the specific device, as the device add script can set whatever REMOVER is appropriate. It is also compatible with the default behavior of ignoring remove. -- Steve Williams "The woods are lovely, dark and deep. steve at icarus.com But I have promises to keep, steve at picturel.com and lines to code before I sleep, http://www.picturel.com And lines to code before I sleep." abuse@xo.com uce@ftc.gov ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Stuff, things, and much much more. http://thinkgeek.com/sf _______________________________________________ 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