Subversion Repositories SvarDOS

Rev

Rev 2158 | Rev 2181 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2158 Rev 2169
Line 1029... Line 1029...
1029
    /* replace all '#' occurences by bootdrive */
1029
    /* replace all '#' occurences by bootdrive */
1030
    strtr(autoexec_bat1, '#', bootdrv);
1030
    strtr(autoexec_bat1, '#', bootdrv);
1031
 
1031
 
1032
    /* write all to file */
1032
    /* write all to file */
1033
    fputs(autoexec_bat1, fd);
1033
    fputs(autoexec_bat1, fd);
-
 
1034
    /* insert provox initialization if to be installed */
-
 
1035
    if (fileexists("PROVOX.SVP")) {
-
 
1036
      fprintf(fd, "%c:\\DRIVERS\\PROVOX\\PROVOX.EXE\r\n", bootdrv);
-
 
1037
      fprintf(fd, "%c:\\DRIVERS\\PROVOX\\PV.EXE BNS\r\n", bootdrv);
-
 
1038
    }
1034
    genlocalesconf(fd, &locales);
1039
    genlocalesconf(fd, &locales);
1035
    fputs(autoexec_bat2, fd);
1040
    fputs(autoexec_bat2, fd);
1036
 
1041
 
1037
    fprintf(fd, "ECHO %s\r\n", svarlang_strid(0x0600)); /* "Welcome to SvarDOS!" */
1042
    fprintf(fd, "ECHO %s\r\n", svarlang_strid(0x0600)); /* "Welcome to SvarDOS!" */
1038
    fclose(fd);
1043
    fclose(fd);
Line 1184... Line 1189...
1184
  snprintf(buff, sizeof(buff), "%c:\\TEMP\\INSTALL.COM", drvletter);
1189
  snprintf(buff, sizeof(buff), "%c:\\TEMP\\INSTALL.COM", drvletter);
1185
  fcopy(buff, buff + 8, buff, sizeof(buff));
1190
  fcopy(buff, buff + 8, buff, sizeof(buff));
1186
  snprintf(buff, sizeof(buff), "%c:\\TEMP\\INSTALL.LNG", drvletter);
1191
  snprintf(buff, sizeof(buff), "%c:\\TEMP\\INSTALL.LNG", drvletter);
1187
  fcopy(buff, buff + 8, buff, sizeof(buff));
1192
  fcopy(buff, buff + 8, buff, sizeof(buff));
1188
 
1193
 
-
 
1194
  /* copy the PROVOX driver, if present */
-
 
1195
  if (fileexists("provox.exe")) {
-
 
1196
    snprintf(buff, sizeof(buff), "%c:\\TEMP\\PROVOX.EXE", drvletter);
-
 
1197
    fcopy(buff, buff + 8, buff, sizeof(buff));
-
 
1198
    snprintf(buff, sizeof(buff), "%c:\\TEMP\\PV.EXE", drvletter);
-
 
1199
    fcopy(buff, buff + 8, buff, sizeof(buff));
-
 
1200
  }
-
 
1201
 
1189
  /* copy packages */
1202
  /* copy packages */
1190
  for (i = 0;; i++) {
1203
  for (i = 0;; i++) {
1191
    RETRY_ENTIRE_LIST:
1204
    RETRY_ENTIRE_LIST:
1192
 
1205
 
1193
    /* move forward to nearest entry or end of list */
1206
    /* move forward to nearest entry or end of list */
Line 1240... Line 1253...
1240
  snprintf(buff, sizeof(buff), "%c:\\autoexec.bat", drvletter);
1253
  snprintf(buff, sizeof(buff), "%c:\\autoexec.bat", drvletter);
1241
  fd = fopen(buff, "wb");
1254
  fd = fopen(buff, "wb");
1242
  if (fd == NULL) return(-1);
1255
  if (fd == NULL) return(-1);
1243
  fprintf(fd, "@ECHO OFF\r\n"
1256
  fprintf(fd, "@ECHO OFF\r\n"
1244
              "CD TEMP\r\n"
1257
              "CD TEMP\r\n"
-
 
1258
              "IF EXIST PROVOX.EXE PROVOX.EXE\r\n"
-
 
1259
              "IF EXIST PV.EXE PV BNS\r\n"
1245
              "install\r\n"   /* installer will run in 2nd stage (generating autoexec.bat, pkg.cfg and stuff) */
1260
              "install\r\n"   /* installer will run in 2nd stage (generating autoexec.bat, pkg.cfg and stuff) */
1246
              "postinst.bat\r\n");
1261
              "postinst.bat\r\n");
1247
  fclose(fd);
1262
  fclose(fd);
1248
 
1263
 
1249
  return(0);
1264
  return(0);