[Udpcast] Ejecting the CD-ROM before broadcast
Michael D. Setzer II
mikes at kuentos.guam.net
Thu Jun 22 11:03:27 CEST 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 22 Jun 2006 at 10:29, Thomas Kuehling wrote:
Subject: Re: [Udpcast] Ejecting the CD-ROM before broadcast
From: Thomas Kuehling <thomas.kuehling at mapsolute.com>
To: Yannick Gingras <ygingras at ygingras.net>
Organization: Mapsolute GmbH
Date sent: Thu, 22 Jun 2006 10:29:24 +0200
Copies to: udpcast at udpcast.linux.lu
Send reply to: thomas.kuehling at mapsolute.com
<mailto:udpcast-request at udpcast.linux.lu?subject=unsubscribe>
<mailto:udpcast-request at udpcast.linux.lu?subject=subscribe>
> Hi Yannick,
>
> i am not really fit in C, but on Linux it's enough to do just an eject
> without addressing the device. Just type in the bash "eject" and the
> device will be ejeceted.
>
Later versions of the busybox have the eject as an optoin. I added it to the
g4l cd, and use it with a frontend script that is downloaded from the ftp
server to automate the process,
> On Mi, 2006-06-21 at 18:45 -0400, Yannick Gingras wrote:
> > Hi, I'd like to have my udpcast to eject its CD-ROM before a broadcast
> > so I can pick it and boot another box with it. Yeah I could just push
> > the CD-ROM drive button but I'm a lazy bum. cast-o-matic is a great
> > tool so I though I could just upload eject and call it. Ok eject is
> > overkill, I did a smaller eject that I call miniject:
> >
> > #include <unistd.h>
> > #include <stdlib.h>
> > #include <stdio.h>
> > #include <string.h>
> > #include <fcntl.h>
> > #include <limits.h>
> > #include <sys/ioctl.h>
> > #include <linux/cdrom.h>
> >
> > #define DEF_CDROM "/dev/cdrom"
> >
> > int main(int argc, char **argv)
> > {
> > int fd;
> > if (argc > 1)
> > fd = open(argv[1], O_RDONLY|O_NONBLOCK);
> > else
> > fd = open(DEF_CDROM, O_RDONLY|O_NONBLOCK);
> > ioctl(fd, CDROMEJECT);
> > }
> >
> > But unfortunatly I can't find the cdrom device in /dev. Are there any
> > modules that I should add to the image in order to have the cdrom
> > device created in /dev ?
> >
>
> Mit freundlichen Grüßen
> Thomas Kühling
>
> --
> Mapsolute Gmbh - Techn. Administration - TK2325-RIPE
> Düsseldorfer Straße 40a - 65760 Eschborn/Frankfurt a.M. - Germany
> E-Mail: thomas.kuehling at mapsolute.com - web: http://www.mapsolute.com
>
> _______________________________________________
> Udpcast mailing list
> Udpcast at udpcast.linux.lu
> https://lll.lgl.lu/mailman/listinfo/udpcast
>
+----------------------------------------------------------+
Michael D. Setzer II - Computer Science Instructor
Guam Community College Computer Center
mailto:mikes at kuentos.guam.net
mailto:msetzerii at gmail.com
http://www.guam.net/home/mikes
Guam - Where America's Day Begins
+----------------------------------------------------------+
http://setiathome.berkeley.edu
Number of Seti Units Returned: 19,471
Processing time: 32 years, 290 days, 12 hours, 58 minutes
(Total Hours: 287,489)
BOINC Seti at Home Total Credits 1288277.115071
-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8 -- QDPGP 2.61c
Comment: http://community.wow.net/grt/qdpgp.html
iQA/AwUBRJnQQCzGQcr/2AKZEQLXCwCgjcBVbcngO823D9QpdY7ExtDxxygAoNSC
IrlSYVQFVrEnbrDoleeuCCFV
=o4sU
-----END PGP SIGNATURE-----
More information about the Udpcast
mailing list