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.
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
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
> 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
>> > 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
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,
> 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
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
8 matches
Mail list logo