From f0b909ea68b0fce80cbd29679fb818cbd8291b3e Mon Sep 17 00:00:00 2001 From: Berke Viktor Date: Sun, 21 Oct 2012 08:11:24 +0200 Subject: [PATCH] Add Mageia support to SysInfo --- plugins/sysinfo/parse.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/sysinfo/parse.c b/plugins/sysinfo/parse.c index 075f3f31..9e185874 100644 --- a/plugins/sysinfo/parse.c +++ b/plugins/sysinfo/parse.c @@ -401,6 +401,8 @@ int xs_parse_distro(char *name) } else if((fp = fopen("/etc/redhat-release", "r")) != NULL) 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) fgets(buffer, bsize, fp); else if((fp = fopen("/etc/mandrake-release", "r")) != NULL)