All of lore.kernel.org
 help / color / mirror / Atom feed
* problem with PROGRAM
@ 2005-11-30  6:47 Aras Vaichas
  2005-11-30  7:39 ` Greg KH
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Aras Vaichas @ 2005-11-30  6:47 UTC (permalink / raw)
  To: linux-hotplug

Hi,

I'm getting udev to work with a usb ethernet device (also Linux based) and 
Zeroconf.

What I need to do is run the autoipd daemon on network device usb0 when it 
appears, and remove autoipd when network device usb0 disappears.

adding was easy:
ACTION="add", PHYSDEVDRIVER="usbnet", PROGRAM="/usr/bin/autoipd -i %k"

My first attempt was to simply killall processes called autoipd. This works OK, 
but isn't the best method.

ACTION="remove", PHYSDEVDRIVER="usbnet", PROGRAM="/usr/bin/killall autoipd"


The second option was to kill only the autoipd process for usb0

ACTION="remove", PHYSDEVDRIVER="usbnet", PROGRAM="/usr/bin/cat 
/var/run/autoipd-usb0.pid | /usr/bin/xargs /bin/kill"

but this doesn't work and I don't know why. Am I allowed to use a pipe in the 
PROGRAM field?


regards,

Aras Vaichas






-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id\x16865&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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-12-02  3:03 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-30  6:47 problem with PROGRAM Aras Vaichas
2005-11-30  7:39 ` Greg KH
2005-11-30 16:43 ` linas
2005-11-30 23:29 ` Kay Sievers
2005-12-01  4:34 ` Aras Vaichas
2005-12-01  5:00 ` Aras Vaichas
2005-12-02  3:03 ` Kay Sievers

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.