[comp.os.coherent] modeminit in rc

truth@sdcc13.ucsd.edu (Ain't that the TRuth) (05/10/91)

OK. I can make Kermit do its thing now. Thanks for the mail on that.
Feeling like I finally knew what was going on I reread the sections
on /etc/ttys and enable and disable and read through the info in my
release notes for 3.1.0+. At last I felt prepared to make it so
someone could call me and log in. But...  life ain't that easy. Here
is the /usr/bin/modeminit as stated in the release notes:

	# initialize 2400-baud Hayes-compatible modem
	disable com3r
	sleep 3 > /dev/com3l &
	stty 2400 > /dev/com3l
	echo 'AT E0 Q1 V0 S0=1 &C1 M3' > /dev/com3l
	sleep 3
	enable com3r

So I type this in without the tabs at the left and replacing the
com3r's with com1r's and the com3l's with com1l's (made sense
seeing as how my modem is on com1). Everything looked great so
I took out the ":" at the front on the modeminit line in my /etc/rc.
When I shutdown, synced, and rebooted, it got through to the "going
multi-user" part and died (as in just sat there: no login prompt).
So I tried adding /etc/ in front of disable and enable. It still
didn't work. I then went through lots of reboots deleting and
replacing lines to narrow the problem down to the disable and enable
line. Without those 2 lines it makes it to the login prompt. With
either or both added, it can't make there. Does this have something
to do with that "s" in the permisions list for those files? I've
been messing with this for too many hours now. Hopefully, this is
something where somebody out there can go, "Oh, he's doing that?
No, no, no. He should be doing this: ..." without a second thought.
If you get such an inspiration please let me know.
					With thanks,
					Todd Ruth
truth@ucsd.edu

truth@sdcc13.ucsd.edu (Ain't that the TRuth) (05/10/91)

By the way, I checked did check all the modem commands in my modem
manual and they're OK and the wierdest part is when I sprinkled
echo 'made it this'>/dev/console style lines around in the rc
and modeminit, i discovered that it gets through rc just fine. the
only thing it won't do (from what i can tell) is give a login
prompt. (i tried adding /etc/enable /dev/console to my rc incase
that had gotten messed up some how but it didn't help either)
				thanks again,
				todd
truth@ucsd.edu