[fpc-pascal] Detecting what is the linux distro
Marco van de Voort
marcov at stack.nl
Mon Oct 11 15:33:15 CEST 2010
In our previous episode, Graeme Geldenhuys said:
> > file.
> > Many distro's uses /etc/XXXX__release, where XXXX is their name, but it's
> > not a proper way either to detect, because not everyone uses it.
> >
> > Any additional ideas ?
>
>
> 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
0 -rw-r--r--. 1 root root 0 2010-06-25 11:25 core-4.0-ia32
0 -rw-r--r--. 1 root root 0 2010-06-25 11:25 core-4.0-noarch
0 -rw-r--r--. 1 root root 0 2010-06-25 11:25 graphics-4.0-ia32
0 -rw-r--r--. 1 root root 0 2010-06-25 11:25 graphics-4.0-noarch
0 -rw-r--r--. 1 root root 0 2010-06-25 11:25 printing-4.0-ia32
0 -rw-r--r--. 1 root root 0 2010-06-25 11:25 printing-4.0-noarch
More information about the fpc-pascal
mailing list