Hi,

unfortunately cfengine is not recognizing Sun Cobalt based systems, which we´re still using to a great amount. I´ve attached a small patch to misc.c, which is adding another /etc/release-file lookup:

[root bin]# cat /etc/generic-release
Sun Cobalt Linux
[root bin]#

is it possible to include this to cfengine?

bye
,
Stefan



--- misc.c      Tue Jun  5 17:51:34 2007
+++ misc.c.cobalt       Tue Jun  5 17:51:50 2007
@@ -807,6 +807,12 @@
    linux_redhat_version();
    }
 
+if (stat("/etc/generic-release",&statbuf) != -1)
+   {
+   Verbose("\nThis appears to be a sun cobalt system.\n");
+   AddClassToHeap("SunCobalt");
+   }
+
 if (stat("/etc/SuSE-release",&statbuf) != -1)
    {
    Verbose("\nThis appears to be a SuSE system.\n");
@@ -818,6 +824,12 @@
    {
    Verbose("\nThis appears to be a slackware system.\n");
    AddClassToHeap("slackware");
+   }
+
+if (stat("/etc/generic-release",&statbuf) != -1)
+   {
+   Verbose("\nThis appears to be a sun cobalt system.\n");
+   AddClassToHeap("SunCobalt");
    }
  
 if (stat("/etc/debian_version",&statbuf) != -1)
_______________________________________________
Bug-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/bug-cfengine

Reply via email to