Re: [NTLK] /dev/ devices

From: zbir_at_urbanape.com
Date: Wed Feb 20 2002 - 11:57:13 EST


> Zachary wrote:
>
> >> I've got the Keyspan Twin Serial USB adapter, so when it's plugged
> >> in, I
> >> have two extra entries in /dev: tty.KeyUSA28X181.1 and
> >> tty.KeyUSA28x181.2
> >> ( when it's plugged into the first USB slot ). To make the symlink,
> >> just
> >> run the following command:
> >>
> >> (zbir_at_gibbon ~) $ sudo ln -s /dev/tty.KeyUSA28X181.1 /dev/newton
> >
> > One caveat that I've found is that newly created /dev/ devices do not
> > last past a reboot. I have no idea why.
>
> USB, Firewire, and PCMCIA devices are plug-and-play. You can plug them
> into either USB port, can plug multiple versions of the same device into
> a machine, and can remove them any time you like. The only way to
> handle this is to have a new unique device file created on-the-fly when
> the device is inserted.

Not what I mean. My symlinks persist between the actual adapter being
connected. They do not persist between reboots. This was explained to me
on the macosx-talk list. Mac OS X uses devfs, and so the /dev/ directory
is recreated on each startup. Apparently, under linux, you can edit a
configuration file to add new devs ( and presumably symlinks ) when the
/dev/ directory is built, but the poster was unsure whether that would
work with Apple's implementation of devfs.

Zachery Bir <zbir_at_urbanape.com>
<URL:http://www.urbanape.com/>

-- 
This is the Newtontalk mailinglist - http://www.newtontalk.net
To unsubscribe or manage: visit the above link or
	mailto:newtontalk-request_at_newtontalk.net?Subject=unsubscribe



This archive was generated by hypermail 2.1.2 : Sat Mar 02 2002 - 10:03:24 EST