help-cfengine
[Top][All Lists]
Advanced

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

Mandrake 10.1 patch resubmission


From: Chip Seraphine
Subject: Mandrake 10.1 patch resubmission
Date: Mon, 10 Jan 2005 15:27:02 -0600
User-agent: Mozilla Thunderbird 0.8 (X11/20040916)

This one didn't seem to make it into 2.1.12.  Misc.c didn't change since
2.1.11 so it should still work.  Resubmitting per Mark's request....

http://lists.gnu.org/archive/html/help-cfengine/2004-12/msg00054.html

--

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
chip@trdlnk.com






reply via email to

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