monitor_htop.sh 280 B

1234567891011121314
  1. #!/bin/bash
  2. if [[ $(dpkg --get-selections|grep -w 'htop'|head -1) = "" ]]; then
  3. title "INSTALADO HTOP..."
  4. if apt install htop -y &>/dev/null ; then
  5. print_center -verd "Htop instalado"
  6. sleep 2
  7. else
  8. print_center -verm2 "Htop NO instalado"
  9. sleep 2
  10. return 1
  11. fi
  12. fi
  13. htop