summaryrefslogtreecommitdiffstats
path: root/loader/devices.c
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>1999-09-19 14:19:47 +0000
committerMatt Wilson <msw@redhat.com>1999-09-19 14:19:47 +0000
commitab9d3840e583a9a5b2152f973de7308052ce5c44 (patch)
treed7b140025fadcbef9c3a4778d5fd7e852fa2acae /loader/devices.c
parent13a71d05d7fe5fb28d9b3ef42ff3e166218561ad (diff)
downloadanaconda-ab9d3840e583a9a5b2152f973de7308052ce5c44.tar.gz
anaconda-ab9d3840e583a9a5b2152f973de7308052ce5c44.tar.xz
anaconda-ab9d3840e583a9a5b2152f973de7308052ce5c44.zip
separated out devLoadDriverDisk()
Diffstat (limited to 'loader/devices.c')
-rw-r--r--loader/devices.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/loader/devices.c b/loader/devices.c
index 0468c36de..2e660c3b0 100644
--- a/loader/devices.c
+++ b/loader/devices.c
@@ -165,11 +165,12 @@ static int copyDriverDisk(moduleInfoSet modInfo, moduleList modLoaded,
return 0;
}
-static int setupDriverDisk(moduleInfoSet modInfo, moduleList modLoaded,
- moduleDeps modDeps, int flags) {
+int devLoadDriverDisk(moduleInfoSet modInfo, moduleList modLoaded,
+ moduleDeps modDeps, int flags, int cancelNotBack) {
int rc;
- rc = newtWinChoice(_("Devices"), _("OK"), _("Back"),
+ rc = newtWinChoice(_("Devices"), _("OK"),
+ cancelNotBack ? _("Cancel") : _("Back"),
_("Insert your driver disk and press \"OK\" to continue."));
if (rc == 2) return LOADER_BACK;
@@ -198,7 +199,7 @@ static int pickModule(moduleInfoSet modInfo, enum driverMajor type,
struct newtExitStruct es;
do {
- if (FL_EXPERT(flags) || FL_NOPROBE(flags)) {
+ if (FL_MODDISK(flags)) {
text = newtTextboxReflowed(-1, -1, _("Which driver should I try?. "
"If the driver you need does not appear in this list, and "
"you have a separate driver disk, please press F2."),
@@ -217,7 +218,7 @@ static int pickModule(moduleInfoSet modInfo, enum driverMajor type,
form = newtForm(NULL, NULL, 0);
- if (FL_EXPERT(flags) || FL_NOPROBE(flags))
+ if (FL_MODDISK(flags))
newtFormAddHotKey(form, NEWT_KEY_F2);
for (i = 0; i < modInfo->numModules; i++) {
@@ -248,7 +249,7 @@ static int pickModule(moduleInfoSet modInfo, enum driverMajor type,
if (es.reason == NEWT_EXIT_COMPONENT && es.u.co == back) {
return LOADER_BACK;
} else if (es.reason == NEWT_EXIT_HOTKEY && es.u.key == NEWT_KEY_F2) {
- setupDriverDisk(modInfo, modLoaded, modDeps, flags);
+ devLoadDriverDisk(modInfo, modLoaded, modDeps, flags, 0);
continue;
} else {
break;