Subject: Re: [NetBSD,*BSD] free slipmaint script
To: None <current-users@NetBSD.org>
From: D'Arcy J.M. Cain <darcy@druid.planix.com>
List: current-users
Date: 12/20/1994 16:27:00
vax@sylvester.cc.utexas.edu (Vax) wrote:
: # NOTE: kluge
: ub hangup_modem
: { local($devfh,$debug) = @_;
: warn "Attempting to hang up\n";
: &tty_send('+',$debug,$devfh);
: sleep(1);
: &tty_send('+',$debug,$devfh);
: sleep(1);
: &tty_send('+',$debug,$devfh);
: sleep(1);
: &tty_send($modem_hangup_string,$debug,$devfh);
: }
I hope you have set your S registers so that the escape character is
ignored. If not you could have other problems. Do "ATS2=128" and
save to NVRAM to effect this change.
So how to drop the line? Just set the baud rate of the port to 0.
A simple "stty 0 < /dev/tty01" or whatever will do it.
--
D'Arcy J.M. Cain (darcy@druid.com) |
Planix, Inc. | Democracy is three wolves and a
Toronto, Ontario, Canada | sheep voting on what's for dinner.
+1 416 424 2871 (DoD#0082) (eNTP) |