Загрузить файлы в «/»
This commit is contained in:
parent
48c3979ab4
commit
e28724bf13
5
funcs.h
5
funcs.h
@ -206,7 +206,10 @@ LOGO GetArt(void) {
|
||||
SetArt(&art, sizeof(Arch) / sizeof(char *), "pacman -Qq | wc -l", Arch, "\033[0;34m");
|
||||
}
|
||||
|
||||
else if (access("/system", F_OK) != 1)
|
||||
else if (strstr(Uts.sysname, "OpenBSD"))
|
||||
SetArt(&art, sizeof(OpenBSD) / sizeof(char *), "/bin/ls -1 /var/db/pkg/ | wc -l | tr -d ' '", OpenBSD, "\033[1;33m");
|
||||
|
||||
else if (!chdir("/system"))
|
||||
SetArt(&art, sizeof(Android) / sizeof(char *), "dpkg -l | tail -n+6 | wc -l", Android, "\033[32m");
|
||||
|
||||
else
|
||||
|
11
logos.h
11
logos.h
@ -52,6 +52,17 @@ char *Android[] = {
|
||||
" ",
|
||||
};
|
||||
|
||||
char *OpenBSD[] = {
|
||||
"\033[1;33m _____ ",
|
||||
"\033[1;33m \\- -/ ",
|
||||
"\033[1;33m \\_/ \\ ",
|
||||
"\033[1;33m \\ \033[0mO O\033[1;33m |",
|
||||
"\033[1;33m |_ < ) 3 )",
|
||||
"\033[1;33m / \\ / ",
|
||||
"\033[1;33m /-_____-\\ ",
|
||||
" "
|
||||
};
|
||||
|
||||
char *Unknow[] = {
|
||||
"\033[1;36m ___ ",
|
||||
"\033[1;36m (\033[0m..\033[1;36m | ",
|
||||
|
Loading…
Reference in New Issue
Block a user