[fpc-pascal] Detecting what is the linux distro
Michalis Kamburelis
michalis.kambi at gmail.com
Mon Oct 11 17:29:05 CEST 2010
Marco van de Voort wrote:
>> If your distro complies with the LSB standards (most popular distros
>> do), then you should have a /etc/lsb-release text file that you can
>> parse.
>
> FC11, no such file, but there is a dir lsb-release.d with the contents
>
You're not really supposed to be looking at /etc/lsb* files directly.
Rather you should run "lsb_release". Try "lsb_release --all". For the
short name of the distribution, something like "lsb_release --id
--short" is appropriate, see the manpage.
Michalis
More information about the fpc-pascal
mailing list