Configuring a FreeBSD "Kickstart" server
                        by Steven St.Laurent  - steven@403forbidden.net


Intro

Ducks
Ingredients
Security
Contributing

Files
Distro
Files
Files
Mfsroot
Patch
PXEBoot
Boot
Kernel

Services
INETD
DHCP
TFTP
NFS
FTP

Details
How it works
Loader.rc

Installing

Finishing


	PATCH

    -=========================================================================-

        --- termcap.c.bak       Wed Apr 16 09:45:05 2003
        +++ termcap.c   Wed Apr 16 09:57:57 2003
        @@ -37,29 +37,8 @@ prompt_term(char **termp, char **termcap
                   { "cons25w", termcap_cons25w } }; /* must be last */
 
     if (RunningAsInit) {
-       while (1) {
-           int i;
-
-           printf("\nThese are the predefined terminal types available to\n");
-           printf("sysinstall when running stand-alone.  Please choose the\n");
-           printf("closest match for your particular terminal.\n\n");
-           printf("1 ...................... Standard ANSI terminal.\n");
-           printf("2 ...................... VT100 or compatible terminal.\n");
-           printf("3 ...................... FreeBSD system console (color).\n");
-           printf("4 ...................... FreeBSD system console (monochrome).\n\n");
-           printf("5 ...................... xterm terminal emulator.\n\n");
-           printf("Your choice: (1-5) ");
-           fflush(stdout);
-           fgets(str, 80, stdin);
-           i = str[0] - '0';
-           if (i > 0 && i < 6) {
-               *termp = (char *)lookup[i - 1].term;
-               *termcapp = (char *)lookup[i - 1].termcap;
-               break;
-           }
-           else
-               printf("\007Invalid choice, please try again.\n\n");
-       }
+               *termp = (char *)"ansi";
+               *termcapp = (char *)termcap_ansi;
     }
     else {
        printf("\nPlease set your TERM variable before running this program.\n");


     -===================================================================================-




Copyright © 2003 - Steven St.Laurent - steven@403forbidden.net