Subversion Repositories SvarDOS

Rev

Rev 280 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 280 Rev 303
Line 612... Line 612...
612
  fprintf(fd, "@ECHO OFF\r\n");
612
  fprintf(fd, "@ECHO OFF\r\n");
613
  fprintf(fd, "SET TEMP=C:\\TEMP\r\n");
613
  fprintf(fd, "SET TEMP=C:\\TEMP\r\n");
614
  fprintf(fd, "SET DOSDIR=C:\\SVARDOS\r\n");
614
  fprintf(fd, "SET DOSDIR=C:\\SVARDOS\r\n");
615
  fprintf(fd, "SET NLSPATH=%%DOSDIR%%\\NLS\r\n");
615
  fprintf(fd, "SET NLSPATH=%%DOSDIR%%\\NLS\r\n");
616
  fprintf(fd, "SET DIRCMD=/OGNE/P/4\r\n");
616
  fprintf(fd, "SET DIRCMD=/OGNE/P/4\r\n");
617
  fprintf(fd, "SET WATTCP.CFG=%%DOSDIR%%\\CFG\\WATTCP.CFG\r\n");
617
  fprintf(fd, "SET WATTCP.CFG=%%DOSDIR%%\\CFG\r\n");
618
  fprintf(fd, "PATH %%DOSDIR%%\\BIN\r\n");
618
  fprintf(fd, "PATH %%DOSDIR%%\\BIN\r\n");
619
  fprintf(fd, "PROMPT $P$G\r\n");
619
  fprintf(fd, "PROMPT $P$G\r\n");
620
  fprintf(fd, "ALIAS REBOOT=FDAPM COLDBOOT\r\n");
620
  fprintf(fd, "ALIAS REBOOT=FDAPM COLDBOOT\r\n");
621
  fprintf(fd, "ALIAS HALT=FDAPM POWEROFF\r\n");
621
  fprintf(fd, "ALIAS HALT=FDAPM POWEROFF\r\n");
622
  fprintf(fd, "FDAPM APMDOS\r\n");
622
  fprintf(fd, "FDAPM APMDOS\r\n");
Line 656... Line 656...
656
              "DIR DEVEL C:\\DEVEL\r\n");
656
              "DIR DEVEL C:\\DEVEL\r\n");
657
  fclose(fd);
657
  fclose(fd);
658
  /*** COUNTRY.SYS ***/
658
  /*** COUNTRY.SYS ***/
659
  /*** PICOTCP ***/
659
  /*** PICOTCP ***/
660
  /*** WATTCP ***/
660
  /*** WATTCP ***/
-
 
661
  snprintf(buff, sizeof(buff), "%c:\\SVARDOS\\CFG\\WATTCP.CFG", targetdrv);
-
 
662
  fd = fopen(buff, "wb");
-
 
663
  if (fd == NULL) return;
-
 
664
  fprintf(fd, "my_ip = dhcp\r\n"
-
 
665
              "#my_ip = 192.168.0.7\r\n"
-
 
666
              "#netmask = 255.255.255.0\r\n"
-
 
667
              "#nameserver = 192.168.0.1\r\n"
-
 
668
              "#nameserver = 192.168.0.2\r\n"
-
 
669
              "#gateway = 192.168.1.1\r\n");
-
 
670
  fclose(fd);
661
}
671
}
662
 
672
 
663
 
673
 
664
static int installpackages(char targetdrv, char srcdrv, const struct slocales *locales) {
674
static int installpackages(char targetdrv, char srcdrv, const struct slocales *locales) {
665
  char pkglist[512];
675
  char pkglist[512];