🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.nsc.32k
Article #996

Re: Is MINIX on the PC532 dead?

#996
From: Sverre Froyen
Date: Fri, 14 Jun 1991 16:27
88 lines
4026 bytes
>Got a couple of questions...
>
>	- how does one make getty work?  I figured out that the thrashing was
>	  the result of no /etc/gettydefs, but I have no idea what to put in
>	  my now-empty file to set up a simple modem rotary, or whatever.  I
>	  grok bsd modemcap, and HP-UX gettydefs, but it appears I'm missing
>	  something?

I have modified init to call getty with the character put in /etc/ttys as
a speed labels (for the initial speed).  I include a patch below.  I
have not, however, managed to get the speed changes working.  I suspect
we need some changes in the tty driver to accomplish that.

>
>	- which uucp do folks (Karl?) have running?  I've played with the one
>	  on plains, and while I've got it working fine when my other system
>	  calls the pc532, outbound "dials" die in mid-session with protocol
>	  errors.  I've got both hdb and bsd sources around, am tempted to
>	  port the bsd4.3reno uucp, but seems like real work.

I use Karl's (?) uucp port but have not tried dialing out.  The original
comments state that dialouts would not work because of missing hooks
in the tty driver.


Sverre
-- 
Sverre Froyen
sverre@seri.gov, sunpeaks!seri!sverre

Patch for init.c (note that tabs have been converted to spaces):

sverre@abbor(12)$ diff -c dist/init.c init.c
*** dist/init.c Fri Feb 15 07:58:06 1991
--- init.c      Mon May 13 19:59:25 1991
***************
*** 106,111 ****
--- 106,112 ----
    char name[8];                       /* name of this tty */
    int flags;                  /* sg_flags field for this tty */
    int speed;                  /* sg_ispeed for this tty */
+   char label[2];              /* label (2nd character in ttys) */
  };

  struct slotent slots[PIDSLOTS];       /* init table of ttys and pids */
***************
*** 258,263 ****
--- 259,266 ----
        if('a' <= *p && *p <= 'a' + NPARAMSETS) {       /* a serial line? */
                slotp->flags |= uart[*p - 'a'].flags;
                slotp->speed = uart[*p - 'a'].baud;
+               slotp->label[0] = *p;
+               slotp->label[1] = 0;
        } else if (*p != '0') {
                while(*p++ != '\n') ;   /* skip the rest of the line */
                continue;
***************
*** 323,334 ****
         * the first digit in /etc/ttys to '2'.  '1' still means LOGIN.
         */
        if (slotp->onflag == 2) {
!               if (linenr == 0) {
!                       execle(GETTY, GETTY, line, "-k", "CONSOLE", (char *)0,
!                              env);
!                } else {
!                       execle(GETTY, GETTY, line, (char *)0, env);
!               }
        }

        /* Try to exec various logins. */
--- 326,332 ----
         * the first digit in /etc/ttys to '2'.  '1' still means LOGIN.
         */
        if (slotp->onflag == 2) {
!               execle(GETTY, GETTY, line, slotp->label, (char *)0, env);
        }

        /* Try to exec various logins. */

Here is my gettydefs file (all speeds rotate bask to themselves)
Note that spaces around the speed characters (`f', `d', etc.)
are significant, i.e., do NOT put spaces around these characters.

sverre@abbor(19)$ cat gettydefs
f# SANE B9600 # SANE B9600 # Abbor login: #f
d# SANE B2400 # SANE B2400 # Abbor login: #d
s# SANE B19200 # SANE B19200 # Abbor login: #s
v# SANE B38400 # SANE B38400 # Abbor login: #v
Technical Details
Message-ID: <9106141627.AA01597@lars.seri.gov>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!think.com!zaphod.mps.ohio-state.edu!mips!pacbell.com!tandem!zorch!daver!lars.Seri.GOV!sverre@lars.Seri.GOV
References: <9106141450.AA21220@hpcsbg.col.hp.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!think.com!zaphod.mps.ohio-state.edu!mips!pacbell.com!tandem!zorch!daver!lars.Seri.GOV!sverre@lars.Seri.GOV
From: sverre@lars.Seri.GOV (Sverre Froyen)
Newsgroups: comp.sys.nsc.32k
Subject: Re: Is MINIX on the PC532 dead?
Message-ID: <9106141627.AA01597@lars.seri.gov>
Date: 14 Jun 91 16:27:18 GMT
References: <9106141450.AA21220@hpcsbg.col.hp.com>
Sender: news@daver.bungi.com (Network News)
Organization: Association for the Prevention of Polar Bears and Kangaroos
Lines: 88