Ubuntu Jaunty and LSB (Linux Standard Base)
I can't believe it but it's true, LSB is not part of the Jaunty default installation *sigh*
the following command works so nicely if one wants to detect the linux version a script is running on:$ echo $(lsb_release -rcsi)
but without LSB the command won't work. I am a little bit surprised that it is not common among all linux releases to include LSB (except for the ones going for small footprint like DSL).
Install LSB on jaunty with:
$ sudo apt-get install -y lsb