Subject: Re: iMac modem setup. Was: Clarification request: PPP and NetBSD 1.5
To: None <port-macppc@netbsd.org>
From: John Valdes <valdes@uchicago.edu>
List: port-macppc
Date: 02/01/2001 21:09:14
On Sun, Jan 28, 2001 at 01:14:32PM -0800, Andrew Howard wrote:
> 
> Ok, so here's a dumb question: does anyone know which device corresponds
> to the modem on an iMac?  I presume tty01, but I'm just guessing.  Second
> question: has anyone been able to get the modem working on an iMac?  I've
> spent some time with cu, but I havent been able to elicit a response.

I don't know about the iMac, but on my PowerBook G3 (Lombard), the
internal modem is tty00.  I'd guess it'd be the same on your iMac.

To use tty00, you'll first need to disable the getty process that's
normally listening on it by default on NetBSD 1.5.  To do this, edit
/etc/ttys, and, in the line for tty00, change the "on" to "off".
Then, "kill -HUP 1" (that is, send signal 1 (HUP) to the init
process).  init will then terminate the getty on tty00 and won't
bother restarting it.  Next, change the ownership & permissions on
/dev/tty00 to match those of /dev/tty01 (typically:

  crw-------  1 uucp  wheel  12, 0 Feb  1 14:53 /dev/tty00

).  You can then use "cu" or "tip" (I prefer tip) to talk to the
modem.  For tip, add yourself to the "dialer" group (or make
/usr/bin/tip world executable), then simply type "tip com0" to connect
to tty00 (the "com0" comes from /etc/remote).  If tip tells you
"connected" you should now be able to talk to the modem.  Enter "at"
and return, and see if the modem responses w/ "OK".  To exit tip,
enter "~.".

Once you can talk to the modem, you can then configure ppp or
whatever.

John