lkml.org 
[lkml]   [1998]   [Aug]   [31]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
FromKeith Owens <>
Subject2.1.119, pppd 2.3.5, serial problem
DateMon, 31 Aug 1998 10:58:14 +1000
2.1.119, SMP, pppd 2.3.5.  PPP will connect first time, kill -1 pppd,
try to reconnect.  On the second time it hangs on open of ttyS1 in
'stty sane < /dev/ttyS1'.  Using cua1 (even though cua is obsolete)
works.  Powering the external modem on and off makes no difference.

#!/bin/sh
PATH=/bin:/sbin:/usr/bin:/usr/sbin
export PATH
modprobe ppp
stty sane < /dev/${1:-ttyS1}
stty parenb cs7 < /dev/${1:-ttyS1}
setserial /dev/${1:-ttyS1} spd_hi
date >> /etc/ppp/connect-errors
exec pppd /dev/${1:-ttyS1} 38400 modem pap-restart 10 -detach \
	lock crtscts asyncmap 0 \
	lcp-echo-failure 12 \
	lcp-echo-interval 300 \
	mtu 596 \
	-vj \
	-ac \
	-pc \
	connect '
		 chat -t 240 \
		 	ABORT "BUSY" \
		 	ABORT "NO DIALTONE" \
		 	ABORT "NO ANSWER" \
		 	ABORT "NO CARRIER" \
			"" "ATH0" \
			"OK" "ATZ" \
			"OK" "AT+FCLASS=0" \
			"OK" "ATW1" \
			"OK" "ATDTxxxxxxxx" \
			"CONNECT" "" \
			"Host" "xxxxxxxx" \
			"UIC" "xxxxxxxx" \
			"word" "tpass1" \
		'

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html

\
 
 \ /
  Last update: 2005-03-22 13:44    [from the cache]
©2003-2008