Re: [fpc-pascal] Detecting what is the linux distro

2010-10-13 Thread Sven Barth
Am 12.10.2010 19:13, schrieb Marco van de Voort: In our previous episode, David W Noon said: ArchLinux does not use a System V init system, but a simpler BSD one. And thus it does not use /etc/init.d, but only /etc/rc.d. So does the BSD init use run levels? Yes. One of the major

Re: [fpc-pascal] Detecting what is the linux distro

2010-10-12 Thread Graeme Geldenhuys
On 11 October 2010 20:51, ik ido...@gmail.com wrote: It's sad to see that there is no specific way to get this information on all distro's but at least I can get it on the most used distros out there. A general problem under Linux (and it's hundreds of distros). That is why I think it is so

Re: [fpc-pascal] Detecting what is the linux distro

2010-10-12 Thread Henry Vermaak
On 11 October 2010 19:51, ik ido...@gmail.com wrote: Thanks all for the answers. It's sad to see that there is no specific way to get this information on all distro's but at least I can get it on the most used distros out there. Just curious, why would you like to detect this? Henry

Re: [fpc-pascal] Detecting what is the linux distro

2010-10-12 Thread Graeme Geldenhuys
On 12 October 2010 09:30, Henry Vermaak wrote: Just curious, why would you like to detect this? I don't know about the original poster, but I for one use such information for our custom security components - generating trial unlock keys for our commercial software. -- Regards,   - Graeme -

Re: [fpc-pascal] Detecting what is the linux distro

2010-10-12 Thread ik
On Tue, Oct 12, 2010 at 09:30, Henry Vermaak henry.verm...@gmail.comwrote: On 11 October 2010 19:51, ik ido...@gmail.com wrote: Thanks all for the answers. It's sad to see that there is no specific way to get this information on all distro's but at least I can get it on the most used

Re: [fpc-pascal] Detecting what is the linux distro

2010-10-12 Thread David W Noon
On Tue, 12 Oct 2010 09:54:35 +0200, ik wrote about Re: [fpc-pascal] Detecting what is the linux distro: On Tue, Oct 12, 2010 at 09:30, Henry Vermaak henry.verm...@gmail.comwrote: [snip] Just curious, why would you like to detect this? You want to know how to install files for daemons

Re: [fpc-pascal] Detecting what is the linux distro

2010-10-12 Thread Sven Barth
Am 12.10.2010 14:01, schrieb David W Noon: On Tue, 12 Oct 2010 09:54:35 +0200, ik wrote about Re: [fpc-pascal] Detecting what is the linux distro: On Tue, Oct 12, 2010 at 09:30, Henry Vermaak henry.verm...@gmail.comwrote: [snip] Just curious, why would you like to detect this? You want

Re: [fpc-pascal] Detecting what is the linux distro

2010-10-12 Thread David W Noon
On Tue, 12 Oct 2010 16:29:42 +0200, Sven Barth wrote about Re: [fpc-pascal] Detecting what is the linux distro: Am 12.10.2010 14:01, schrieb David W Noon: [snip] This is a consequence of using an init process based on the System V model. ArchLinux does not use a System V init system

Re: [fpc-pascal] Detecting what is the linux distro

2010-10-12 Thread ik
not that simple. Ido LINESIP websites: http://www.linesip.com http://www.linesip.co.il On Tue, Oct 12, 2010 at 14:01, David W Noon david.w.n...@ntlworld.comwrote: On Tue, 12 Oct 2010 09:54:35 +0200, ik wrote about Re: [fpc-pascal] Detecting what is the linux distro: On Tue, Oct 12, 2010 at 09

Re: [fpc-pascal] Detecting what is the linux distro

2010-10-12 Thread Henry Vermaak
On 12 October 2010 17:06, ik ido...@gmail.com wrote: It's not just that. Lets say you have a UI for IPTables. In Redhat based, it will be located under /etc/sysconfig/iptables . On debian based, it should be under /etc/networking/post-config or something like that (don't have a debian based

Re: [fpc-pascal] Detecting what is the linux distro

2010-10-12 Thread Marco van de Voort
In our previous episode, David W Noon said: ArchLinux does not use a System V init system, but a simpler BSD one. And thus it does not use /etc/init.d, but only /etc/rc.d. So does the BSD init use run levels? Yes. One of the major distinctions between /etc/init.d/ and /etc/rc.d is

Re: [fpc-pascal] Detecting what is the linux distro

2010-10-11 Thread Torsten Bonde Christiansen
On 2010-10-11 13:33, ik wrote: Hello List, I'm looking for a proper way to detect the type of Linux distro. At first I thought about /etc/issue, but it seems that some are abusing this file. Many distro's uses /etc/__release, where is their name, but it's not a proper way either to

Re: [fpc-pascal] Detecting what is the linux distro

2010-10-11 Thread Graeme Geldenhuys
On 11 October 2010 13:33, ik ido...@gmail.com wrote: At first I thought about /etc/issue, but it seems that some are abusing this file. Many distro's uses /etc/__release, where is their name, but it's not a proper way either to detect, because not everyone uses it. Any additional

Re: [fpc-pascal] Detecting what is the linux distro

2010-10-11 Thread silvioprog
2010/10/11 ik ido...@gmail.com Hello List, I'm looking for a proper way to detect the type of Linux distro. At first I thought about /etc/issue, but it seems that some are abusing this file. Many distro's uses /etc/__release, where is their name, but it's not a proper way either

Re: [fpc-pascal] Detecting what is the linux distro

2010-10-11 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said: file. Many distro's uses /etc/__release, where 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

Re: [fpc-pascal] Detecting what is the linux distro

2010-10-11 Thread Michalis Kamburelis
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

Re: [fpc-pascal] Detecting what is the linux distro

2010-10-11 Thread ik
Thanks all for the answers. It's sad to see that there is no specific way to get this information on all distro's but at least I can get it on the most used distros out there. Ido ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org