|
|
ru.unix.bsd- RU.UNIX.BSD ------------------------------------------------------------------ From : Dmitry Zubov 2:465/186.186 11 Apr 2000 22:55:00 To : All Subject : mgetty --------------------------------------------------------------------------------
FreeBSD-3.2, на портах висит mgetty-1.1.21.
Говорю от _root-a_:
# cu -l cuaa2
cu: open (/dev/cuaa2): Permission denied
cu: cuaa2: Line in use
# cu -l ttyd2
cu: open (/dev/ttyd2): Permission denied
cu: ttyd2: Line in use
/usr/local/etc/mgetty+sendfax/mgetty.config
port-owner root
port-group wheel
port-mode 0600
speed 57600
term cons25r
modem-type data
modem-check-time 600
rings 1
init-chat "" AT&F1&K3&D2+SF+S64=1S10=100S0=0 OK
force-init-chat "" ATZ OK AT&F1&K3&D2+SF+S64=1S10=100S0=0 OK
statistics-chat "" ATI6 OK ATY16 OK ATI15 OK ATI9 OK ATZ OK [Перенос]
+SF+S64=1S10=100S0=0 OK
/etc/rc.serial
modem() {
# Modem that supports CTS and perhaps RTS handshaking.
ci=$1; shift
co=$1; shift
for i in $*
do
# may depend on modem
# comcontrol /dev/tty$ci$i dtrwait 100 drainwait 180
# Lock crtscts on.
# Speed reasonable for V42bis.
stty </dev/ttyi$ci$i crtscts 57600
stty </dev/ttyl$ci$i crtscts
stty </dev/cuai$co$i crtscts 57600
stty </dev/cual$co$i crtscts
done
}
modem d a 2 3 4 5 6 7 8 9
(тут мультипортовка)
/etc/ttys
Пробовал так:
ttyd2 "/usr/local/sbin/mgetty" unknown on insecure
так
cuaa2 "/usr/local/sbin/mgetty" unknown on insecure
так
ttyd2 "/usr/sbin/getty std.57600" unknown on insecure
ttyd2 "/usr/local/sbin/mgetty" unknown on insecure
и так
cuaa2 "/usr/sbin/getty std.57600" unknown on insecure
cuaa2 "/usr/local/sbin/mgetty" unknown on insecure
Достучатся до порта можно только убрав с него mgetty, и то не всегда :-(
mgetty брал из ports. До этого стоял обычный getty:
ttyd2 "/usr/sbin/getty std.57600" unknown on insecure
по
# cu -l cuaa2
прекрасно пускал в порты.
Извечный вопрос - что не так?
Sysop.
--- TM-Ed 1.14+
* Origin: Миp, Тpуд, Май - Модем, DOOM, Пиво! (2:465/186.186)
Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.unix.bsd/405738f2fcb1.html, оценка из 5, голосов 10
|