summary refs log tree commit diff stats
path: root/plugins
diff options
context:
space:
mode:
authorTingPing <TingPing@users.noreply.github.com>2013-10-20 21:15:12 -0400
committerTingPing <TingPing@users.noreply.github.com>2013-10-20 21:15:12 -0400
commit62735c54fb65f3bb1a377bc0fbe487c6a65fcbe8 (patch)
tree27c65f7456788a8040aed07ad9c62e12caa9ed38 /plugins
parent712cfc31355fa95515174665bef94803cf0c5741 (diff)
sysinfo: Fix showing debian version on ubuntu
Diffstat (limited to 'plugins')
-rw-r--r--plugins/sysinfo/parse.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/sysinfo/parse.c b/plugins/sysinfo/parse.c
index 44ad4f86..4c15897a 100644
--- a/plugins/sysinfo/parse.c
+++ b/plugins/sysinfo/parse.c
@@ -399,12 +399,6 @@ int xs_parse_distro(char *name)
 		fgets(buffer, bsize, fp);
 	else if((fp = fopen("/etc/mandrake-release", "r")) != NULL)
 		fgets(buffer, bsize, fp);
-	else if((fp = fopen("/etc/debian_version", "r")) != NULL)
-	{
-		char release[bsize];
-		fgets(release, bsize, fp);
-		snprintf(buffer, bsize, "Debian %s", release);
-	}
 	else if((fp = fopen("/etc/SuSE-release", "r")) != NULL)
 		fgets(buffer, bsize, fp);
 	else if((fp = fopen("/etc/turbolinux-release", "r")) != NULL)
@@ -425,6 +419,12 @@ int xs_parse_distro(char *name)
 		}
 		snprintf(buffer, bsize, "%s \"%s\" %s", id, codename, release);
 	}
+	else if((fp = fopen("/etc/debian_version", "r")) != NULL)
+	{
+		char release[bsize];
+		fgets(release, bsize, fp);
+		snprintf(buffer, bsize, "Debian %s", release);
+	}
 	else
 		snprintf(buffer, bsize, "Unknown Distro");
 	if(fp != NULL) fclose(fp);