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] Re: Disk Full

2010-10-12 Thread Sven Barth
Am 12.10.2010 09:51, schrieb Sven Barth: [4 times the same mail] Sorry for the spam, but Thunderbird reported an error which wasn't one. *blush* Regards, Sven ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Re: Disk Full

2010-10-12 Thread Sven Barth
Am 11.10.2010 00:16, schrieb Bernd Kreuss: from rtl/win/syswin.inc: DLL_THREAD_ATTACH : begin inclocked(Thread_count); WinEnterCriticalSection(AttachingThread); if Win32GetCurrentThreadId MainThreadIdWin32 then begin

Re: [fpc-pascal] Re: Disk Full

2010-10-12 Thread Sven Barth
Am 11.10.2010 00:16, schrieb Bernd Kreuss: from rtl/win/syswin.inc: DLL_THREAD_ATTACH : begin inclocked(Thread_count); WinEnterCriticalSection(AttachingThread); if Win32GetCurrentThreadId MainThreadIdWin32 then begin

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 to

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, but

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

2010-10-12 Thread ik
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 machine here), and so on... Please note that I do not talk

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