]>
git.ipfire.org Git - people/teissler/ipfire-2.x.git/blob - src/install+setup/install/cdrom.c
1 /* SmoothWall install program.
3 * This program is distributed under the terms of the GNU General Public
4 * Licence. See the file COPYING for details.
6 * (c) Lawrence Manning, 2001
7 * CDROM menu. Get "misc" driver name etc.
18 /* Ejects the CDROM. returns 0 for failure, 1 for success. */
19 int ejectcdrom(char *dev
)
23 if ((fd
= open(dev
, O_RDONLY
|O_NONBLOCK
)) == -1)
26 if (ioctl(fd
, 0x5309) == -1)