			cd.manager v.0.4
		Copyright (C) 2001 Jens Axboe <axboe@suse.de>
		Copyright (C) 2005 Peter Willis <psyphreak@phreaker.net>
        Copyright (C) 2009 Brad Love <brad |*| b-rad.cc>

				ABOUT

cd.manager is taken from a linux-kernel mailing list post by Jens Axboe
as an example of how to poll for CDROM events and deal with them in user space.
After that Peter Willis got ahold of it and enhanced it to his wishes. I then
modified the source code specifically to retool it for use on the WDTV with external
usb cd/dvd drives. Manages mounting and allows use of eject button with the drive, 
as long as there is not a file being played. Discs are mounted using their volume label
if it exists. Can be theoretically used to manage multiple external drives simultaneously.

				USAGE

cd.manager <device>  
cd.eject <device>
cd.mount <device>
cd.manager polls the CDROM for various events and handles them accordingly.
when new media is detected the script /bin/cd.mount is executed.
when the eject button is pressed the script /bin/cd.eject is executed.

                INSTALL

Place the following in /bin/:
    cd.manager   cd.eject   cd.mount
Place the following in /etc/hotplug/:
    cd.agent
mdev compatibility aka hotplug drive capability & boot time mounting
add the following line to /etc/mdev.conf
    sr[0-9] 0:0 755 @(/etc/hotplug/cd.agent)

                NOTES

Firstly: compiled specifically for WDTV, aka mipsel-linux.

If you desire large filesizes, udf must be compiled and udf must be listed in 
/etc/filesystems at the top. 8.4GiB DVD+R-DLhas been tested to mount & play correctly.

				CREDITS

Thanks to Jens Axobe for Peter for most of the work on this code.
