Catch more cases where the CDROM has been mounted.
This commit is contained in:
parent
9d9806c5b9
commit
0fc1c5c44a
@ -4,7 +4,7 @@
|
||||
* This is probably the last attempt in the `sysinstall' line, the next
|
||||
* generation being slated to essentially a complete rewrite.
|
||||
*
|
||||
* $Id: cdrom.c,v 1.40 1998/01/16 15:07:54 jkh Exp $
|
||||
* $Id: cdrom.c,v 1.41 1998/07/21 06:44:38 jkh Exp $
|
||||
*
|
||||
* Copyright (c) 1995
|
||||
* Jordan Hubbard. All rights reserved.
|
||||
@ -86,12 +86,15 @@ mediaInitCDROM(Device *dev)
|
||||
}
|
||||
cdromMounted = TRUE;
|
||||
}
|
||||
else
|
||||
cdromMounted = TRUE;
|
||||
|
||||
if (!file_readable(string_concat(mountpoint, "/cdrom.inf")) && !bogusCDOK) {
|
||||
if (msgYesNo("Warning: The CD currently in the drive is either not a FreeBSD\n"
|
||||
"CD or it is an older (pre 2.1.5) FreeBSD CD which does not\n"
|
||||
"have a version number on it. Do you wish to use this CD anyway?") != 0) {
|
||||
unmount(mountpoint, MNT_FORCE);
|
||||
cdromMounted = FALSE;
|
||||
return FALSE;
|
||||
}
|
||||
else {
|
||||
|
@ -4,7 +4,7 @@
|
||||
* This is probably the last attempt in the `sysinstall' line, the next
|
||||
* generation being slated to essentially a complete rewrite.
|
||||
*
|
||||
* $Id: cdrom.c,v 1.40 1998/01/16 15:07:54 jkh Exp $
|
||||
* $Id: cdrom.c,v 1.41 1998/07/21 06:44:38 jkh Exp $
|
||||
*
|
||||
* Copyright (c) 1995
|
||||
* Jordan Hubbard. All rights reserved.
|
||||
@ -86,12 +86,15 @@ mediaInitCDROM(Device *dev)
|
||||
}
|
||||
cdromMounted = TRUE;
|
||||
}
|
||||
else
|
||||
cdromMounted = TRUE;
|
||||
|
||||
if (!file_readable(string_concat(mountpoint, "/cdrom.inf")) && !bogusCDOK) {
|
||||
if (msgYesNo("Warning: The CD currently in the drive is either not a FreeBSD\n"
|
||||
"CD or it is an older (pre 2.1.5) FreeBSD CD which does not\n"
|
||||
"have a version number on it. Do you wish to use this CD anyway?") != 0) {
|
||||
unmount(mountpoint, MNT_FORCE);
|
||||
cdromMounted = FALSE;
|
||||
return FALSE;
|
||||
}
|
||||
else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user