]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - 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
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 *
9 */
10
11 #include "install.h"
12
13 extern FILE *flog;
14 extern char *mylog;
15
16 extern char **ctr;
17
18 /* Ejects the CDROM. returns 0 for failure, 1 for success. */
19 int ejectcdrom(char *dev)
20 {
21 char command;
22 sprintf(command, "eject -r /dev/%s", dev);
23 if (mysystem(command))
24 return 0;
25 else
26 return 1;
27 }