From c8365f81063baf8165ee8650e2c2745e6c0e0d15 Mon Sep 17 00:00:00 2001 From: TheDarkBug Date: Tue, 28 Dec 2021 22:36:57 +0100 Subject: [PATCH] Fixed android model (#182) --- README.md | 10 +++++----- uwufetch.c | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 27a8dd4..b10800f 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,10 @@ A meme system info tool for (almost) all your Linux/Unix-based systems, based on the nyan/UwU trend on r/linuxmasterrace. +## Contributing + +All kinds of contributions are welcome, but before contributing **please** read [CONTRIBUTING.md](/CONTRIBUTING.md). + ## Currently supported distros ### Full support (Both ASCII art + images are provided for the given distribution) @@ -97,8 +101,4 @@ See [COPYRIGHT.md](/res/COPYRIGHT.md). ## License -This program is provided under the [GPL-3.0 License](/LICENSE). - -## Contributing - -All kinds of contributions are welcome, but before contributing please read [CONTRIBUTING.md](/CONTRIBUTING.md). +This program is provided under the [GPL-3.0 License](/LICENSE). \ No newline at end of file diff --git a/uwufetch.c b/uwufetch.c index 9f4f3dd..90aa09f 100644 --- a/uwufetch.c +++ b/uwufetch.c @@ -998,9 +998,9 @@ struct info get_info() sprintf(user_info.user, "unknown"); fclose(whoami); // model name - // model_fp = popen("getprop ro.product.model", "r"); - // while (fgets(buffer, sizeof(buffer), model_fp) && !sscanf(buffer, "%[^\n]", user_info.model)) - // ; + model_fp = popen("getprop ro.product.model", "r"); + while (fgets(buffer, sizeof(buffer), model_fp) && !sscanf(buffer, "%[^\n]", user_info.model)) + ; #ifndef __FREEBSD__ while (fgets(buffer, sizeof(buffer), cpuinfo) && !sscanf(buffer, "Hardware : %[^\n]", user_info.cpu_model)) ;