1) /etc/udev/rules.d - IS NOT distro specific
See the “Rules Files” section of this manual page:
http://www.unix.com/man-page/linux/7/udev/
2) That same manual page states:
Rule files must have the extension .rules; other extensions are ignored.
3) This is distro-specific and belongs to sysadmin realm of responsibility,
they're supposed to know better…
Agree & Disagree -
PROBLEM - Your user/victim - is often the same person. They just have
multiple personalities.
The OpenOCD manual should state this accordingly only because your
audience is an engineer
4) The number prefix
Correct, technically it can be removed - but - it is consistently used in
multiple distributions.
However - it is a better idea to go ahead and document it as the default
way of doing things.
This way your lemmings (people often just do as they are told) will just
follow the example.
5) About the number prefix … sometimes the order is important … and having
things split up into multiple files makes life easier.
This is an old trick found in /etc/rc.d - by numbering files, you can
control the alphabetical sort order
You can then do this:
for x in `ls /some/path/*.something | sort`
do
process $x
done
Numbers just you keep the filename, and control the order of execution :-)
-Duane.
On Feb 22, 2014, at 8:18 AM, Andreas Fritiofson <andreas.fritiof...@gmail.com>
wrote:
>
> On Sat, Feb 22, 2014 at 4:29 PM, Paul Fertser <fercer...@gmail.com> wrote:
> On Sat, Feb 22, 2014 at 07:24:52AM -0800, Duane Ellis wrote:
> > Openocd provides a UDEV file named: "openocd.udev" you must copy/rename
> > this
> > file to exactly:
> > /etc/udev/rules.d/60-openocd.rules
>
> So you mean it should end in .rules and not .udev? I guess we might
> want to rename openocd.udev to openocd.rules instead?
>
>
> Yes it has to be named .rules, sorry I didn't notice previously that it
> wasn't.
>
> > The number 60 is an example, can be any number you choose,
>
> I wonder if it can go without the number altogether.
>
>
> According to my man udev, they are sorted lexically, we should be able to
> skip the number. Indeed /etc/udev/rules.d/README suggests to skip the number
> if order is unimportant. So openocd.rules would be a suitable name.
>
> /Andreas
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel