aboutsummaryrefslogtreecommitdiff
path: root/arch/linux/common/os.h
diff options
context:
space:
mode:
authorSimon Quigley <tsimonq2@ubuntu.com>2017-06-19 14:38:44 -0500
committerSimon Quigley <tsimonq2@ubuntu.com>2017-06-19 14:38:44 -0500
commitee6c3f9b4cf08a276c971dee66e1acdb32b3dff9 (patch)
treef7dc3f671114fd867204dca23871eaf2fa4ccc4a /arch/linux/common/os.h
parent7aeb5ac87c6105bd8fcc9b1fd12e37ba1550f587 (diff)
Import Upstream version 0.4.2.3
Diffstat (limited to 'arch/linux/common/os.h')
-rw-r--r--arch/linux/common/os.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/linux/common/os.h b/arch/linux/common/os.h
index 0fe06709..e4f35e95 100644
--- a/arch/linux/common/os.h
+++ b/arch/linux/common/os.h
@@ -185,6 +185,15 @@ computer_get_os(void)
os->distro = g_strdup(buf);
}
}
+
+ if (g_str_equal(distro_db[i].codename, "ppy")) {
+ gchar *tmp;
+
+ tmp = g_strdup_printf("Puppy Linux %.2f", atof(os->distro) / 100.0);
+ g_free(os->distro);
+ os->distro = tmp;
+ }
+
os->distrocode = g_strdup(distro_db[i].codename);
break;