<div dir="ltr">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...<br>

<br>Please note that I do not talk about exited scripts such as Arno's scripts or shorewall, just plain IPTables client, and it's different on each distro.<br><br>If you require to read settings of the system (that located at /etc/), no one guarantee you that all distro's will store then at the same place.<br>

<br>That's the reason why so many software/driver vendors are so reluctant to release Linux support.<br>For example Foomatic drivers for CUPS, the drivers of the printers in Mac OS-X are the same as with Linux, but many vendors ignore Linux just because this mess.<br>

<br>So it's not just "lets create a package and get over with it", It's not that simple.<br><br>Ido<br><br clear="all"><div dir="ltr">LINESIP websites:<br><a href="http://www.linesip.com" target="_blank">http://www.linesip.com</a><br>

<a href="http://www.linesip.co.il" target="_blank">http://www.linesip.co.il</a><br><br></div><br>
<br><br><div class="gmail_quote">On Tue, Oct 12, 2010 at 14:01, David W Noon <span dir="ltr"><<a href="mailto:david.w.noon@ntlworld.com">david.w.noon@ntlworld.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

On Tue, 12 Oct 2010 09:54:35 +0200, ik wrote about Re: [fpc-pascal]<br>
Detecting what is the linux distro:<br>
<div class="im"><br>
> On Tue, Oct 12, 2010 at 09:30, Henry Vermaak<br>
> <<a href="mailto:henry.vermaak@gmail.com">henry.vermaak@gmail.com</a>>wrote:<br>
</div>[snip]<br>
<div class="im">> > Just curious, why would you like to detect this?<br>
> ><br>
><br>
> You want to know how to install files for daemons, append information<br>
> in other existed packages etc... But instead of creating 1000%<br>
> packages types for each distro, you can for example know  that Gentoo<br>
> and ArchLinux uses /etc/rc.d/ for init deamons.<br>
> You know that Debian, CentOS, RedHat and few others uses /etc/init.d/<br>
> etc...<br>
<br>
</div>Both of those directories are used by virtually all UNIX<br>
implementations. /etc/init.d/ contains the init scripts for system<br>
daemons, whereas /etc/rc.d/ contains the configuration files that are<br>
interpolated into the init scripts to establish environment variables<br>
for the daemons.  These directories do not have an either/or<br>
relationship.<br>
<br>
This is a consequence of using an init process based on the System V<br>
model.<br>
<br>
Why don't you just use a package manager, such as apt/dpkg, Portage,<br>
RPM, etc., instead?  Most distros can handle more than one of these.<br>
For example, I run Gentoo, and it will handle .deb and .rpm packages,<br>
as well as its native Portage ebuilds.<br>
<font color="#888888">--<br>
Regards,<br>
<br>
Dave  [RLU #314465]<br>
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*<br>
<a href="mailto:david.w.noon@ntlworld.com">david.w.noon@ntlworld.com</a> (David W Noon)<br>
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*<br>
</font><br>_______________________________________________<br>
fpc-pascal maillist  -  <a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a><br>
<a href="http://lists.freepascal.org/mailman/listinfo/fpc-pascal" target="_blank">http://lists.freepascal.org/mailman/listinfo/fpc-pascal</a><br></blockquote></div><br></div>