diff --git a/README.md b/README.md index 446fb5c..68e5437 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,7 @@ afetch is written in C99, meaning that it should be able to be compiled with alm * OpenBSD * OpenSUSE Leap (slow due to package manager) * OpenSUSE Tumbleweed (slow due to package manager) +* OpenWrt * Parabola * Pop!\_OS * postmarketOS diff --git a/src/fetch.c b/src/fetch.c index 3cfb582..73e0bac 100644 --- a/src/fetch.c +++ b/src/fetch.c @@ -359,6 +359,17 @@ void *os() info.col7 = BGREEN "__________/"; info.col8 = BGREEN ""; info.getPkgCount = "rpm -qa | wc -l"; + } else if (strncmp(osname, "OpenWrt", 7) == 0) { + info.col1 = BWHITE " ______ \n" BBLUE; + info.col2 = BWHITE " / ____ \\ " BBLUE; + info.col3 = BWHITE " / __ \\ " BBLUE; + info.col4 = BBLUE " / "BWHITE"/ \\ "BBLUE"\\ " BBLUE; + info.col5 = BBLUE " \\ "BWHITE"()"BBLUE" / " BBLUE; + info.col6 = BBLUE " \\____/ " BBLUE; + info.col7 = BBLUE " OpenWrt " BBLUE; + info.col8 = BBLUE ""; + info.getPkgCount = + "grep 'P:' /lib/apk/db/installed | wc -l"; } else if (strncmp(osname, "Parabola", 8) == 0) { info.col1 = BMAGENTA ""; info.col2 = BMAGENTA " __ __ __ _ ";