[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#455899: damned ADMtek junk



Sorry for the delay in repliing, but I was expecting a proper solution could
be found.  Right now I find the situation hopeless.

In case it helps others, this is the script I use to work around it.  It's
a really nasty hack, but works ~90% of the time, and with this I only need
to manually attend the device once a day or so.

rmh@nslu:~$ tail -n 3 /etc/rc.local
sh -c "while sleep 10 ; do while ping -c 1 192.168.1.1 >/dev/null ; do sleep 10 ; done ; rmmod pegasus ; /root/pegasus_hack ; done" &

exit 0

rmh@nslu:~$ cat /root/pegasus_hack
#!/bin/sh -e
usbid=`lsusb | grep -v "ID \(05e3:0702\|0000:0000\)" | sed -e "s/^Bus [0-9]* Device [0-9]*: ID \([^ ]*\) .*/\1/g"`
if [ "$usbid" = "" ] ; then
  usbid=0000:0000
fi
exec modprobe pegasus devid=Crap:$usbid:0


Not sure how you feel about closing this bug.  Perhaps it'd be a good idea
to document it or leave it open + wontfix or similar, so that others can
avoid (some of) the hassle.

-- 
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call, if you are unable to speak?
(as seen on /.)



Reply to: