On Thu, 26 Dec 2002, Marc Wilson wrote: > On Thu, Dec 26, 2002 at 06:11:06PM -0800, Bill Moseley wrote: > > Is there a way to either unload the modules automatically on hotplug > > disconnect so that it will run my script again on next hotsync?
> Sure. Just have your action script unload it explicitly: > > $ cat /etc/hotplug/usb/visor > #!/bin/sh > /bin/su mwilson -c /usr/local/bin/coldsync > /sbin/rmmod visor usbserial Ah, right. That was mentioned in the visor howto. I guess I assumed if there was a "hotplug" there must be a "hotunplug" and so was looking for that. I don't really get the design of the agent script, though. Seems like one would want to run a script on a hotplug (and unplug) event, not just when the hotplug triggered a module to be loaded. What if "visor" is compiled into the kernel instead of as a module? Or if two different devices plugged in at the same time used the same module? Thanks for the help, -- Bill Moseley [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]