On Tue, 17 May 2005 14:46:24 +1200 Rik Tindall wrote: > Residual tweak: RH9 used Kudzu to set up the 'COM1' modem each boot, > which was handy as an error/change message prompted me to turn it on if > I forgot. Instead, I now have to.. > > ~$ sudo ln /dev/ttyS0 /dev/modem > > .each time. Is there a way to make this link permanent, or is adding an > init script more the done thing?
I suspect your /dev/directory is being rewritten on boot by either devfs or udev. your options are: 1. tell whatever program you are using to use /dev/ttyS0 as the modem device; or 2. you can get into the configuration for udev or devfs (whichever one our distro uses) and tell it to make the link (you will need to do more reading for this); or 3. most distros have a script designed for admins to put miscellaneous startup stuff in. I am not sure where this is on your system, but look for a directory like /etc/init.d/local [1]- someone will correct me for the correct debian/ubuntu file. Anywhere thats where you put the command you want on boot. <IMHO> Please note that option 1 is the easiest unless the software is so anal as to not be able to be configured to use a different device. It is therefore the most desirable. If the software is that anal then option 2 is preferred to option 3, which is a hack. Option 2 is "right" and wil teach you how to do similar things in future (eg create a /dev/dvd and /dev/cdrom pointing in the right place), but OTOH both devfs and udev are moderately complex and the quick hack in 3 will work. </IMHO> [1] that file doesn't seem to be the one for debian, if horse is anything to go by. There will be an equivalent mechanism, and as i said, someone on this list will magically supply it. -- Nick Rout
