Subversion Repositories SvarDOS

Rev

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

Rev 1824 Rev 1839
Line 965... Line 965...
965
    }
965
    }
966
    /* copy flags to rmod's storage (and enable ECHO) */
966
    /* copy flags to rmod's storage (and enable ECHO) */
967
    rmod->flags = cfg.flags | FLAG_ECHOFLAG;
967
    rmod->flags = cfg.flags | FLAG_ECHOFLAG;
968
    /* printf("rmod installed at %Fp\r\n", rmod); */
968
    /* printf("rmod installed at %Fp\r\n", rmod); */
969
    rmod->version = BYTE_VERSION;
969
    rmod->version = BYTE_VERSION;
-
 
970
 
-
 
971
    /* if my environment seg was zeroed, then I am the init process (under DR-DOS and MS-DOS 5 at least) */
-
 
972
    if (rmod->origenvseg == 0) {
-
 
973
      rmod->flags |= FLAG_PERMANENT; /* imply /P so AUTOEXEC.BAT is executed */
-
 
974
 
-
 
975
      /* If I am init then query kernel's private data via INT 21,4458 (DR-DOS).
-
 
976
       * On success (CF not set) ES:BX contains a pointer to the private data.
-
 
977
       * Segment of kernel's environment is at offset 12h. This environment may
-
 
978
       * be terminated by a 1Ah code followed by an boot key scan code to
-
 
979
       * record F5 or F8 key pressed at boot time. */
-
 
980
      /* TODO */
-
 
981
    }
970
  } else {
982
  } else {
971
    /* printf("rmod found at %Fp\r\n", rmod); */
983
    /* printf("rmod found at %Fp\r\n", rmod); */
972
    /* if I was spawned by rmod and FLAG_EXEC_AND_QUIT is set, then I should
984
    /* if I was spawned by rmod and FLAG_EXEC_AND_QUIT is set, then I should
973
     * die asap, because the command has been executed already, so I no longer
985
     * die asap, because the command has been executed already, so I no longer
974
     * have a purpose in life, UNLESS I still have a batch file to run or
986
     * have a purpose in life, UNLESS I still have a batch file to run or