From 4b64f6c867e6ef7bc4b2ba851f9ee1347d3c77de Mon Sep 17 00:00:00 2001 From: Erik Troan Date: Wed, 4 Oct 2000 18:41:49 +0000 Subject: TERM changes for ja --- loader/loader.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/loader/loader.c b/loader/loader.c index 6c5acd0e0..471ab4990 100644 --- a/loader/loader.c +++ b/loader/loader.c @@ -2377,9 +2377,11 @@ int main(int argc, char ** argv) { #ifdef INCLUDE_KON else if (!strcmp(argv[0] + strlen(argv[0]) - 3, "kon")) { + setenv("TERM", "kon", 1); i = kon_main(argc, argv); return i; } else if (!strcmp(argv[0] + strlen(argv[0]) - 8, "continue")) { + setenv("TERM", "kon", 1); continuing = 1; } #endif @@ -2476,9 +2478,20 @@ int main(int argc, char ** argv) { kdFindScsiList(&kd, 0); kdFindNetList(&kd, 0); #else + /* if we're in PCMCIA, we're always going to pass the PCMCIA code + to the probe */ +# ifdef INCLUDE_PCMCIA kdFindIdeList(&kd, CODE_PCMCIA); kdFindScsiList(&kd, CODE_PCMCIA); kdFindNetList(&kd, CODE_PCMCIA); +# else + /* but if we're not in PCMCIA, there is a chance that we were run in + kon mode which means that the probes were done and modules were + inserted, but they're *not* PCMCIA */ + kdFindIdeList(&kd, continuing ? 0 : CODE_PCMCIA); + kdFindScsiList(&kd, continuing ? 0 : CODE_PCMCIA); + kdFindNetList(&kd, continuing ? 0 : CODE_PCMCIA); +# endif #endif if (!continuing) { -- cgit