Re: [shr-u] Executing commands on USB insertion/removal?

2009-08-19 Thread Olivier Migeot
On Tue, Aug 18, 2009 at 5:03 PM, Sebastian Krzyszkowiakseba.d...@gmail.com wrote: Use /etc/freesmartphone/oevents/rules.yaml. You should be able to use usb insertion event as input device. Thank you, I'll look into it. But meantime I realized my script only needed to know whether the USB

[shr-u] Executing commands on USB insertion/removal?

2009-08-18 Thread Olivier Migeot
Hi, I'm trying to execute some commands [1] whenever USB network gets up or down. From /etc/network/interfaces, there are some lines that seem to play that role (those starting with up or down). But it looks like unplugging the cable doesn't change anything : for instance the default route went

Re: [shr-u] Executing commands on USB insertion/removal?

2009-08-18 Thread Sebastian Krzyszkowiak
On 8/18/09, Olivier Migeot larry...@gmail.com wrote: Hi, I'm trying to execute some commands [1] whenever USB network gets up or down. From /etc/network/interfaces, there are some lines that seem to play that role (those starting with up or down). But it looks like unplugging the cable