• R/O
  • SSH
  • HTTPS

svardos: Commit


Commit MetaInfo

Revision303 (tree)
Time2021-02-13 00:32:36
Authormateuszviste

Log Message

fixed wattcp env variable + generating a default file

Change Summary

Incremental Difference

--- install/install.c (revision 302)
+++ install/install.c (revision 303)
@@ -614,7 +614,7 @@
614614 fprintf(fd, "SET DOSDIR=C:\\SVARDOS\r\n");
615615 fprintf(fd, "SET NLSPATH=%%DOSDIR%%\\NLS\r\n");
616616 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");
618618 fprintf(fd, "PATH %%DOSDIR%%\\BIN\r\n");
619619 fprintf(fd, "PROMPT $P$G\r\n");
620620 fprintf(fd, "ALIAS REBOOT=FDAPM COLDBOOT\r\n");
@@ -658,6 +658,16 @@
658658 /*** COUNTRY.SYS ***/
659659 /*** PICOTCP ***/
660660 /*** 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);
661671 }
662672
663673
Show on old repository browser