I just searched out my "comprehensive" answer from a later thread:
http://www.linuxquestions.org/questi...2/#post3736674
There is also some code
here which uses the contents of
/etc/lsb-release. I would change the
elifs to a
case statement -- cleaner code.
As for making a HowTo, this is as good a place as any to shape it; & when it looks good, put it in the LQ Linux Tutorials. If shaping it here is too cumbersome for group editing, then maybe the LQ Wiki is a good place.
A search of each might be in order before we start. We don't want to duplicate effort.