vp-03-add-laptop-support.sh 408 B

123456789101112131415161718
  1. #!/bin/bash
  2. if (( $EUID != 0 )); then
  3. echo "Eseguire lo script come amministratore"
  4. exit
  5. fi
  6. # installo task specifico
  7. apt-get install --yes task-laptop
  8. # installo e configuro tuned-utils
  9. apt-get install --yes tuned tuned-utils
  10. tuned-adm profile laptop-battery-powersave
  11. # installo e configuro cpufrequtils
  12. apt-get install --yes cpufrequtils linux-cpupower
  13. cpupower frequency-set --governor powersave