Add Arch patches to SysInfo-Unix and rebrand it

This commit is contained in:
Berke Viktor
2012-10-21 07:15:48 +02:00
parent 187351fa61
commit bc57507a4c
4 changed files with 10 additions and 129 deletions

View File

@ -415,6 +415,8 @@ int xs_parse_distro(char *name)
fgets(buffer, bsize, fp);
else if((fp = fopen("/etc/turbolinux-release", "r")) != NULL)
fgets(buffer, bsize, fp);
else if((fp = fopen("/etc/arch-release", "r")) != NULL)
snprintf(buffer, bsize, "ArchLinux");
else
snprintf(buffer, bsize, "Unknown Distro");
if(fp != NULL) fclose(fp);