Re: executing udev rules on _un_plug

2009-05-18 Thread Cameron Hutchison
cr...@got.net (i'll teach you to turn away.) writes: >Cameron Hutchison wrote: >CH> How can I write a udev rule to be run/matched when a device is >CH> unplugged? >CH> >CH> I have a 3G modem that I wrote a rule for to run "ifup ppp0" when the >CH> modem is plugged in. I would like to have "ifdow

Re: executing udev rules on _un_plug

2009-05-18 Thread i'll teach you to turn away.
Cameron Hutchison wrote: CH> How can I write a udev rule to be run/matched when a device is CH> unplugged? CH> CH> I have a 3G modem that I wrote a rule for to run "ifup ppp0" when the CH> modem is plugged in. I would like to have "ifdown ppp0" be automatically CH> run when the modem is unplugged

executing udev rules on _un_plug

2009-05-17 Thread Cameron Hutchison
How can I write a udev rule to be run/matched when a device is unplugged? I have a 3G modem that I wrote a rule for to run "ifup ppp0" when the modem is plugged in. I would like to have "ifdown ppp0" be automatically run when the modem is unplugged. Without a rule to run "ifdown ppp0", the networ