]>
Commit | Line | Data |
---|---|---|
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 | ||
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 | { | |
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 | } |