On Dec 1, 3:40 pm, John Joyce <dangerwillrobinsondan... / gmail.com>
wrote:
> On Dec 1, 2007, at 12:10 PM, Tiago Macedo wrote:
>
> > An iPod (at least when formatted in FAT32 will contain an
> > "iPod_Control" folder on the root.
>
> > You can also check the USB device ids:
> > Bus 005 Device 003: ID 05ac:1261 Apple Computer, Inc.
> > (this is an 80GB Classic Silver)
>
> > or just build a wrapper for libgpod (I don't it supports drm'ed
> > tracks though)
>
> > Tiago Macedo
>
> The device ID info is in the right vein for what I'm thinking of.
> I know about the "iPod_Control" folder.
> It's on every iPod, inside it is the Music folder and that contains
> the directories that actually hold the audio files.
> I'm just curious, but I'll look into the way the system recognizes
> the iPod... there must be some simple trick to go, ok this is an iPod
> and not some other device.

On my system (linux, 2.6.22 kernel), this turns up some interesting
results...

$ sudo grep -R -i ipod /usr/src/linux/*

...particularly, the following files look like they have some stuff
for identifying ipod devices...

/usr/src/linux/drivers/ieee1394/sbp2.c
/usr/src/linux/drivers/usb/storage/unusual_devs.h

Regards,
Jordan