/bbs/getty.sh
/usr/bin/expect
set timeout 20
set userName [lindex $argv 0]
spawn telnet localhost
expect "Login: "
send "$userName\r"
interact
/etc/mgetty/login.config
* - - /sbbs/getty.sh @
/etc/mgetty/mgetty.config
debug 4
fax-id
speed 38400
issue-file /etc/issue.mgetty
port ttyACM0
debug 8
init-chat "" AT OK
/etc/issue.mgetty
anyBBS Dialup to Telnet Launcher v0.1 on \P at \S (\I)
Enter User Name or Number or 'New'
/etc/systemd/system/getty.target.wants/getty@ttyACM0.service
[Unit]
Description=Getty on %I
Documentation=man:agetty(8) man:systemd-getty-generator(8)
Documentation=http://0pointer.de/blog/projects/serial-console.html
After=systemd-user-sessions.service plymouth-quit-wait.service
After=rc-local.service
ConditionPathExists=/dev/tty0
[Service]
ExecStart=-/sbin/mgetty -n 2 ttyACM0
Type=idle
Restart=always
RestartSec=0
UtmpIdentifier=%I
TTYPath=/dev/%I
TTYReset=yes
TTYVHangup=yes
TTYVTDisallocate=yes
KillMode=process
IgnoreSIGPIPE=no
SendSIGHUP=yes
Environment=LANG= LANGUAGE= LC_CTYPE= LC_NUMERIC= LC_TIME= LC_COLLATE= LC_MONETARY= LC_MESSAGES= LC_PAPER= LC_NAME= LC_ADDRESS= LC_TELEPHONE= LC_MEASUREMENT= LC_IDENTIFICATION=
[Install]
WantedBy=getty.target
DefaultInstance=ttyACM0
/etc/systemd/system/getty.target.wants/getty@ttyACM0.service
[Unit]
Description=Getty on %I
Documentation=man:agetty(8) man:systemd-getty-generator(8)
Documentation=http://0pointer.de/blog/projects/serial-console.html
After=systemd-user-sessions.service plymouth-quit-wait.service
After=rc-local.service
Before=getty.target
IgnoreOnIsolate=yesConditionPathExists=/dev/tty0
[Service]
ExecStart=-/sbin/mgetty -n 2 ttyACM0
Type=idle
Restart=always
RestartSec=0
UtmpIdentifier=%I
TTYPath=/dev/%I
TTYReset=yes
TTYVHangup=yes
TTYVTDisallocate=yes
KillMode=process
IgnoreSIGPIPE=no
SendSIGHUP=yes
Environment=LANG= LANGUAGE= LC_CTYPE= LC_NUMERIC= LC_TIME= LC_COLLATE= LC_MONETARY= LC_MESSAGES= LC_PAPER= LC_NAME= LC_ADDRESS= LC_TELEPHONE= LC_MEASUREMENT= LC_IDENTIFICATION=
[Install]
WantedBy=getty.target
DefaultInstance=ttyACM0
No comments:
Post a Comment