From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Ricardo Leitner Date: Tue, 08 Jun 2004 00:30:38 +0000 Subject: Re: Run script when USB scanner unplugged Message-Id: <20040608003038.GA14834@dhcp169.conectiva> List-Id: References: <40BE3850.8070106@comcast.net> In-Reply-To: <40BE3850.8070106@comcast.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org On S=E1b Jun 05, 2004 at 11:01:23 -0500, Ian Pilcher wrote: > All I want to do is run a script during the USB "remove" event to get > rid of this symlink. Reading through /etc/hotplug/usb.agent, it looks > like I should be able to put a script in the location specified by the > ${REMOVER} variable, but I've tried this and it never gets executed. >=20 > What do I need to do? ---end quoted text--- Take a look at Conectiva's hotplug and usb-mount packages. Hotplug got some patches and usb-mount is responsible for creating .desktop files at ~consoleuser/Desktop to allow easy usb mass-storage integration. It uses the ${REMOVER} for removing/unmounting when the device is gone. --=20 Marcelo Ricardo Leitner ------------------------------------------------------- This SF.Net email is sponsored by: GNOME Foundation Hackers Unite! GUADEC: The world's #1 Open Source Desktop Event. GNOME Users and Developers European Conference, 28-30th June in Norway http://2004/guadec.org _______________________________________________ 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