Re: reinserting USB plug via software

2009-01-23 Thread Boyd Stephen Smith Jr.
On Friday 2009 January 23 12:55:23 jida...@jidanni.org wrote: >I have perfected: Bold claim! >$ cat usb-reset >#!/bin/sh >mount|grep /dev/sd && { echo 1>&2 $0: umount it first, Holmes; exit 55;} It will always error on both of my systems, having /dev/sda1 (internal SATA drive) mounted as /boot.

Re: reinserting USB plug via software

2009-01-23 Thread jidanni
Gentlemen, thank you for your answers. I have perfected: $ cat usb-reset #!/bin/sh mount|grep /dev/sd && { echo 1>&2 $0: umount it first, Holmes; exit 55;} grep uhci_hcd /proc/modules > /dev/null case $? in 0) m=u;; 1) m=o;; esac set -e for i in rmmod modprobe do for j in ${m?}hci-hcd ehci-hcd

Re: reinserting USB plug via software

2009-01-21 Thread Tzafrir Cohen
On Wed, Jan 21, 2009 at 01:40:04PM -0600, Stackpole, Chris wrote: > > From: Henrique de Moraes Holschuh [mailto:h...@debian.org] > > Sent: Tuesday, January 20, 2009 12:19 PM > > Subject: Re: reinserting USB plug via software > > rmmod uhci-hcd; rmmod ehci-hcd; sl

RE: reinserting USB plug via software

2009-01-21 Thread Stackpole, Chris
> From: Henrique de Moraes Holschuh [mailto:h...@debian.org] > Sent: Tuesday, January 20, 2009 12:19 PM > Subject: Re: reinserting USB plug via software > > On Tue, 20 Jan 2009, Stackpole, Chris wrote: > > > What commands would be the equivalent to pulling the USB co

Re: reinserting USB plug via software

2009-01-20 Thread Stefan Monnier
>> > What commands would be the equivalent to pulling the USB connector out >> > of the computer, waiting a second, and then putting it back in? > rmmod uhci-hcd; rmmod ehci-hcd; sleep 1; modprobe ehci-hcd; \ > modprobe uhci-hcd > (you may also need ohci-hcd, but the above is the most common setu

Re: reinserting USB plug via software

2009-01-20 Thread Henrique de Moraes Holschuh
On Tue, 20 Jan 2009, Stackpole, Chris wrote: > > What commands would be the equivalent to pulling the USB connector out > > of the computer, waiting a second, and then putting it back in? rmmod uhci-hcd; rmmod ehci-hcd; sleep 1; modprobe ehci-hcd; \ modprobe uhci-hcd (you may also need ohci-hcd,

RE: reinserting USB plug via software

2009-01-20 Thread Stackpole, Chris
> From: jida...@jidanni.org [mailto:jida...@jidanni.org] > Sent: Friday, January 16, 2009 4:29 PM > Subject: reinserting USB plug via software > > What commands would be the equivalent to pulling the USB connector out > of the computer, waiting a second, and then putting it ba

reinserting USB plug via software

2009-01-16 Thread jidanni
What commands would be the equivalent to pulling the USB connector out of the computer, waiting a second, and then putting it back in? I find that's what I have to do sometimes to get certain things to work, and wish to reduce the wear and tear on the hardware. > But wouldn't it be better to fix