]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - src/install+setup/install/cdrom.c
Nochmal was neues damit der endlich die CD auswirft...
[people/pmueller/ipfire-2.x.git] / src / install+setup / install / cdrom.c
CommitLineData
d6aaa55d
MT
1/* SmoothWall install program.
2 *
3 * This program is distributed under the terms of the GNU General Public
4 * Licence. See the file COPYING for details.
5 *
6 * (c) Lawrence Manning, 2001
7 * CDROM menu. Get "misc" driver name etc.
8 *
d6aaa55d
MT
9 */
10
11#include "install.h"
12
13extern FILE *flog;
14extern char *mylog;
15
16extern char **ctr;
17
18/* Ejects the CDROM. returns 0 for failure, 1 for success. */
19int ejectcdrom(char *dev)
20{
63978f8d 21 char command;
8de160ff 22 sprintf(command, "eject -r /dev/%s", dev);
63978f8d 23 if (mysystem(command))
d6aaa55d 24 return 0;
63978f8d
MT
25 else
26 return 1;
d6aaa55d 27}