help-cfengine
[Top][All Lists]
Advanced

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

Patch for Mandrake Linux 10.1 (or maybe that's "Mandrakelinux 10.1" now)


From: Chip Seraphine
Subject: Patch for Mandrake Linux 10.1 (or maybe that's "Mandrakelinux 10.1" now)
Date: Thu, 09 Dec 2004 16:40:38 -0600
User-agent: Mozilla Thunderbird 0.8 (X11/20040916)

Another Mandrake release, another Mandrake releasestring. Yep, they changed the token *again*, this time from "Mandrake Linux" to "mandrakelinux".

The patch below will allow distro detection to work correctly on Mandrake 10.1 systems.


--- misc.c.orig 2004-12-09 16:37:56.662562000 -0600
+++ misc.c.new  2004-12-09 16:38:01.311362000 -0600
@@ -984,6 +984,7 @@
 * Red Hat Enterprise Linux ES release 2.1 (Panama)
 * Fedora Core release 1 (Yarrow)
 * White Box Enterprise linux release 3.0 (Liberation)
+
 */

#define RH_REL_FILENAME "/etc/redhat-release"
@@ -1246,6 +1247,7 @@
/* We are looking for one of the following strings... */
#define MANDRAKE_ID "Linux Mandrake"
#define MANDRAKE_REV_ID "Mandrake Linux"
+#define MANDRAKE_10_1_ID "Mandrakelinux"

#define RELEASE_FLAG "release "
#define MANDRAKE_REL_FILENAME "/etc/mandrake-release"
@@ -1286,6 +1288,10 @@
    {
    vendor = "mandrake";
    }
+ else if(!strncmp(relstring, MANDRAKE_10_1_ID, strlen(MANDRAKE_10_1_ID)))
+    {
+    vendor = "mandrake";
+    }
 else
    {
Verbose("Could not identify OS distro from %s\n", MANDRAKE_REL_FILENAME);


--

Chip Seraphine
Unix Administrator
TradeLink, LLC
312-264-2048
address@hidden





reply via email to

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