How to get login prompt on ttyS1 the "right way"?



  • I want to connect my Omega 2+ to a remote 2400 baud RS-232 terminal on the second UART, ttyS1. I got it working by just adding this line to /etc/inittab:

    ttyS1::askfirst:/bin/ash --login
    

    However, there are two issues with this approach:

    • It doesn't give a login prompt, just takes me directly to the shell (after showing the "what will you invent today?" banner). That's fine for now, but I'm curious how to turn the login on and off (the --login switch seems to have no effect).

    • The baud rate defaults to 115200. I can force it to 2400 with this command, but I have to ssh in to do it. If I add it to /etc/rc.local that probably will be too late (need to test it).

    stty -F /dev/ttyS1 2400
    

    On other systems like Raspberry Pi I just use agetty, but that doesn't seem to be available for the Omega?

    Just curious if there's a better way I could go about this.


Log in to reply
 

Looks like your connection to Onion Community was lost, please wait while we try to reconnect.