I looked into general USB hotplug notification a while back. I wanted an
interrupt generated that a user-space app could look for. Like too many things
it's a crap shoot as to what services are available. Best case is Linux 2.6
with the udev/inotify system. Linux 2.4 doesn't have that. Devfs/dnotify was
replaced by udev/inotify. That's fine and dandy if you're running full Debian.
Dnotify under TS-Linux
doesn't work. So I ended up having to poll for the /dev entry every couple of
seconds. Lousy solution.
It speaks to my larger annoyance w/ TS for not keeping the OS version up to
date on all their hardware products. "Left as an exercise to the reader" always
pissed me off.
--- In Angel <> wrote:
>
> Hi,
>
> Maybe something like
>
> if (dmesg | grep usba) {mount it}
>
>
>
>
> On Thu, 2009-11-05 at 13:29 +0100, Edmondo Porcu wrote:
> >
> > Good morning everyone,
> > is there a way to detect in Debian when a usb flashdisk is plugged so
> > that you are not forced to loop try to mount it until you succed?
> >
> > Thank you so much for your precious help
> > Edmondo
> >
> >
> >
> >
>
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|