[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RHEL clone patch
From: |
Erik Williamson |
Subject: |
RHEL clone patch |
Date: |
Fri, 15 Oct 2004 10:21:31 -0600 |
User-agent: |
Mozilla Thunderbird 0.7 (X11/20040615) |
Hi All - just a quick patch to detect Whitebox linux machines. I don't
run any other RHEL clones, so I couldn't include them in this. diff'd
against 2.1.10.
Hope this helps,
Erik.
--
e r i k w i l l i a m s o n erik@cpsc.ucalgary.ca
system admin . department of computer science . university of calgary
diff -r cfengine-2.1.10-orig/src/misc.c cfengine-2.1.10-mod/src/misc.c
972a973
> #define WHITEBOX_ID "White Box Enterprise Linux"
984a986
> * White Box Enterprise Linux release 3.0 (Liberation)
1050a1053,1056
> else if(!strncmp(relstring, WHITEBOX_ID, strlen(WHITEBOX_ID)))
> {
> vendor = "whitebox";
> }
--- misc.c.orig 2004-10-15 10:09:53.000000000 -0600
+++ misc.c 2004-10-15 08:45:05.000000000 -0600
@@ -970,6 +970,7 @@
#define REDHAT_WS_ID "Red Hat Enterprise Linux WS"
#define MANDRAKE_ID "Linux Mandrake"
#define FEDORA_ID "Fedora Core"
+#define WHITEBOX_ID "White Box Enterprise Linux"
#define RELEASE_FLAG "release "
@@ -982,6 +983,7 @@
* Linux Mandrake release 7.1 (helium)
* 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"
@@ -1048,6 +1050,10 @@
{
vendor = "fedora";
}
+ else if(!strncmp(relstring, WHITEBOX_ID, strlen(WHITEBOX_ID)))
+ {
+ vendor = "whitebox";
+ }
else
{
Verbose("Could not identify OS distro from %s\n", RH_REL_FILENAME);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- RHEL clone patch,
Erik Williamson <=