[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Mandrake version detection again
From: |
Chip Seraphine |
Subject: |
Mandrake version detection again |
Date: |
Fri, 17 Jun 2005 10:07:03 -0500 |
User-agent: |
Mozilla Thunderbird 1.0 (X11/20041206) |
The patch for detecting the mandrake 10.1 version string mysteriously
vanished from 2.1.15, causing Mandrake 10.1 machines to not realize that
they are Mandrake boxes.
The patch below will give cfengine the ability to understand the
mandrake version string used (only) in Mandrake 10.1.
$ diff -u misc.c.orig misc.c
--- misc.c.orig 2005-06-17 10:00:14.916834425 -0500
+++ misc.c 2005-06-17 10:03:26.886709667 -0500
@@ -1262,6 +1262,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"
@@ -1302,6 +1303,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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Mandrake version detection again,
Chip Seraphine <=