Add Mageia support to SysInfo
This commit is contained in:
parent
3d01c78248
commit
f0b909ea68
|
@ -401,6 +401,8 @@ int xs_parse_distro(char *name)
|
||||||
}
|
}
|
||||||
else if((fp = fopen("/etc/redhat-release", "r")) != NULL)
|
else if((fp = fopen("/etc/redhat-release", "r")) != NULL)
|
||||||
fgets(buffer, bsize, fp);
|
fgets(buffer, bsize, fp);
|
||||||
|
else if((fp = fopen("/etc/mageia-release", "r")) != NULL)
|
||||||
|
fgets(buffer, bsize, fp);
|
||||||
else if((fp = fopen("/etc/slackware-version", "r")) != NULL)
|
else if((fp = fopen("/etc/slackware-version", "r")) != NULL)
|
||||||
fgets(buffer, bsize, fp);
|
fgets(buffer, bsize, fp);
|
||||||
else if((fp = fopen("/etc/mandrake-release", "r")) != NULL)
|
else if((fp = fopen("/etc/mandrake-release", "r")) != NULL)
|
||||||
|
|
Loading…
Reference in New Issue