help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

missing RHEL WS


From: Jeff Bastian
Subject: missing RHEL WS
Date: Tue, 20 Jan 2004 19:09:11 -0600
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113

cfengine 2.1.1 adds detection for RedHat Enterprise Linux AS and ES, but somehow WS was forgotten. Attached is a patch for WS.

Jeff Bastian
--- misc.c      2004-01-09 05:43:28.000000000 -0600
+++ misc2.c     2004-01-20 19:04:43.000000000 -0600
@@ -955,8 +955,9 @@
 {
 #define REDHAT_ID "Red Hat Linux"
 #define REDHAT_AS_ID "Red Hat Enterprise Linux AS"
-#define REDHAT_AS21_ID "Red Hat Linux Advanced Server"
 #define REDHAT_ES_ID "Red Hat Enterprise Linux ES"
+#define REDHAT_WS_ID "Red Hat Enterprise Linux WS"
+#define REDHAT_AS21_ID "Red Hat Linux Advanced Server"
 #define MANDRAKE_ID "Linux Mandrake"
 #define FEDORA_ID "Fedora Core"
 
@@ -967,6 +968,7 @@
  * Red Hat Linux release 6.2 (Zoot)
  * Red Hat Linux Advanced Server release 2.1AS (Pensacola)
  * Red Hat Enterprise Linux AS release 3 (Taroon)
+ * Red Hat Enterprise Linux WS release 3 (Taroon)
  * Linux Mandrake release 7.1 (helium)
  * Red Hat Enterprise Linux ES release 2.1 (Panama)
  * Fedora Core release 1 (Yarrow)
@@ -1008,6 +1010,11 @@
     vendor = "redhat";
     edition = "es";
     }
+ else if(!strncmp(relstring, REDHAT_WS_ID, strlen(REDHAT_WS_ID)))
+    {
+    vendor = "redhat";
+    edition = "ws";
+    }
  else if(!strncmp(relstring, REDHAT_AS_ID, strlen(REDHAT_AS_ID)) ||
         !strncmp(relstring, REDHAT_AS21_ID, strlen(REDHAT_AS21_ID)))
     {

reply via email to

[Prev in Thread] Current Thread [Next in Thread]