mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
If no device is specified, check the CDROM environment variable before
picking the default device.
This commit is contained in:
parent
5078fb0b2a
commit
9dd4b5a781
1 changed files with 4 additions and 0 deletions
|
|
@ -197,6 +197,10 @@ int main (int argc, char **argv)
|
|||
if (argc > 0 && ! strcasecmp (*argv, "help"))
|
||||
usage ();
|
||||
|
||||
if (! cdname) {
|
||||
cdname = getenv("CDROM");
|
||||
}
|
||||
|
||||
if (! cdname) {
|
||||
cdname = DEFAULT_CD_DRIVE;
|
||||
warnx("no CD device name specified, defaulting to %s", cdname);
|
||||
|
|
|
|||
Loading…
Reference in a new issue