diff options
author | Matt Wilson <msw@redhat.com> | 1999-08-05 01:37:48 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 1999-08-05 01:37:48 +0000 |
commit | 2091dfedf9048cb412bed826a0b42b07f81a341b (patch) | |
tree | bb5b65c01b79fcef7c89844468d002f9198bc1ff /loader/init.c | |
parent | cfd1a388adce1f80aa12d56c56fd58ece0abc779 (diff) | |
download | anaconda-2091dfedf9048cb412bed826a0b42b07f81a341b.tar.gz anaconda-2091dfedf9048cb412bed826a0b42b07f81a341b.tar.xz anaconda-2091dfedf9048cb412bed826a0b42b07f81a341b.zip |
enable a switch for text mode
Diffstat (limited to 'loader/init.c')
-rw-r--r-- | loader/init.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/loader/init.c b/loader/init.c index bf84d4a40..04d242ff8 100644 --- a/loader/init.c +++ b/loader/init.c @@ -410,7 +410,7 @@ void unmountFilesystems(void) { } void readargs(int * isRescue, int * isSerial, int * isExpert, int * isKick, - int * forceSupp, int * isNetwork) { + int * forceSupp, int * isNetwork, int *isText) { char buf[512]; char * arg; int fd; @@ -475,6 +475,8 @@ void readargs(int * isRescue, int * isSerial, int * isExpert, int * isKick, *isNetwork = 0; } else if (!strcmp(start, "network")) { *isNetwork = 1; + } else if (!strcmp(start, "text")) { + *isText = 1; } else if (!strncmp(start, "kickstart", 9) || !strncmp(start, "ks", 2)) { arg = strchr(start, '='); @@ -508,6 +510,7 @@ int main(void) { int isExpert = 0; int isKick = 0; int isNetwork = 0; + int isText = 0; int doReboot = 0; int doShutdown =0; int forceSupp = 0; @@ -539,7 +542,8 @@ int main(void) { printf("done\n"); - readargs(&isRescue, &isSerial, &isExpert, &isKick, &forceSupp, &isNetwork); + readargs(&isRescue, &isSerial, &isExpert, &isKick, &forceSupp, &isNetwork, + &isText); if (isSerial) { fd = open("/dev/ttyS0", O_RDWR, 0); @@ -674,6 +678,9 @@ int main(void) { *argvp++ = "--local"; #endif + if (isText) + *argvp++ = "--text"; + *argvp++ = NULL; printf("running %s\n", argv[0]); |