[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Mandrake 10.1 patch resubmission
From: |
Mark . Burgess |
Subject: |
Re: Mandrake 10.1 patch resubmission |
Date: |
Tue, 11 Jan 2005 11:12:26 +0100 (MET) |
I have made a couple of minor changes so tht this is consistent with
previous designations.
M
On 10 Jan, Chip Seraphine wrote:
> 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);
>
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272 Email: Mark.Burgess@iu.hio.no
Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~