setting /dev/ttyS0 permissions at boot in Suse 10?
i need to set the mode on /dev/ttyS0 to 666 at boot time. i'm on Suse 10. i haven't quite figured out how to do this, but i'm guessing udev is involved. can someone point me in the right direction? thanks in advance, ---Matt
On Wed, 2006-01-25 at 14:47 -0800, Matt Harrington wrote:
i need to set the mode on /dev/ttyS0 to 666 at boot time. i'm on Suse 10. i haven't quite figured out how to do this, but i'm guessing udev is involved. can someone point me in the right direction?
Just finished another thread on this in this group. I would put the following line in a file in /etc/udev/rules.d, perhaps called 99-tty.rules KERNEL=="ttyS0", MODE="666" Of course, you can get more fancy. -- Roger Oberholtzer OPQ Systems AB Ramböll Sverige AB Kapellgränd 7 P.O. Box 4205 SE-102 65 Stockholm, Sweden Tel: Int +46 8-615 60 20 Fax: Int +46 8-31 42 23
At 08:17 PM 26/01/2006, Roger Oberholtzer wrote:
On Wed, 2006-01-25 at 14:47 -0800, Matt Harrington wrote:
i need to set the mode on /dev/ttyS0 to 666 at boot time. i'm on Suse 10. i haven't quite figured out how to do this, but i'm guessing udev is involved. can someone point me in the right direction?
Just finished another thread on this in this group. I would put the following line in a file in /etc/udev/rules.d, perhaps called 99-tty.rules
KERNEL=="ttyS0", MODE="666"
Of course, you can get more fancy.
i'd personally say no to this, the tty port doesn't belong to one attachment, in your case it's a gps others use it for many other purposes, such as the mouse, a modem, a router, an isdn interface, etc. instead, sugest to the owner of the /dev program (say through freshmeat) that there is created a /dev/gps device with links and go from there. scsijon
On Thu, 2006-01-26 at 21:27 +1100, scsijon wrote:
At 08:17 PM 26/01/2006, Roger Oberholtzer wrote:
On Wed, 2006-01-25 at 14:47 -0800, Matt Harrington wrote:
i need to set the mode on /dev/ttyS0 to 666 at boot time. i'm on Suse 10. i haven't quite figured out how to do this, but i'm guessing udev is involved. can someone point me in the right direction?
Just finished another thread on this in this group. I would put the following line in a file in /etc/udev/rules.d, perhaps called 99-tty.rules
KERNEL=="ttyS0", MODE="666"
Of course, you can get more fancy.
i'd personally say no to this,
Ummm, I was answering a different question that was specifically how to set the permissions on ttyS0 via udev.
the tty port doesn't belong to one attachment, in your case it's a gps others use it for many other purposes, such as the mouse, a modem, a router, an isdn interface, etc. instead, sugest to the owner of the /dev program (say through freshmeat) that there is created a /dev/gps device with links and go from there.
The generic serial port device driver is, well, generic. It cannot know there is a GPS attached. I doubt very much if the linux kernel or a general purpose driver is interested in maintaining this type of thing. For my use, where a GPS is ALWAYS attached, and where I want the port to have specific settings, the udev method works. YMMV. -- Roger Oberholtzer OPQ Systems AB Ramböll Sverige AB Kapellgränd 7 P.O. Box 4205 SE-102 65 Stockholm, Sweden Tel: Int +46 8-615 60 20 Fax: Int +46 8-31 42 23
participants (3)
-
Matt Harrington
-
Roger Oberholtzer
-
scsijon