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 _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal