beautiful
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing

This commit is contained in:
Lulzette 2022-01-13 04:46:30 +00:00
parent 3829104b72
commit b4b4ecbfd0

View File

@ -8,6 +8,19 @@ echo -e "
\__/ |__/|__/ /_/ /_/\___/_/ .___/\___/_/
/_/
"
trap 'echo " Vyhody cherez menu"' INT
# text color
TEXT_COLOR_GOOD="\033[92m"
TEXT_COLOR_BAD="\033[91m"
TEXT_COLOR_OFF="\033[0m"
harakiri() {
printf "${TEXT_COLOR_BAD}Committing *roskomnadzor*...${TEXT_COLOR_OFF}\n"
if [[ "$HOSTNAME" != "pve-ansible" ]]; then
rm -f "$BASH_SOURCE" &> /dev/null
fi
exit
}
echo "- Load:"
@ -17,7 +30,7 @@ usedmem=`free -m | head -2 | tail -1 | awk '{print $3}'`
totalmem=`free -m | head -2 | tail -1 | awk '{print $2}'`
echo 'LA: ' $la ' of ' $nproc
echo 'RAM: ' $usedmem ' of ' $totalmem
echo 'RAM: ' $usedmem 'Mb of ' $totalmem Mb
echo "- Disk:"
@ -28,9 +41,6 @@ echo "- Inodes:"
df -hi | grep '/dev/vd'
echo "- Installed panel:"
#if zero - false
@ -45,7 +55,6 @@ list=$(apt list --installed 2>&1 |egrep 'atop')
echo $list
while true
do
echo -e "
@ -59,7 +68,8 @@ echo -e "
read -r -p "Выбери: " action
case $action in
0)
exit ;;
harakiri
;;
1)
echo "- Top RAM usage:"
@ -77,3 +87,5 @@ echo -e "
done