Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 11 additions & 0 deletions src/fetch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 " __ __ __ _ ";
Expand Down