Entradas

Mostrando las entradas etiquetadas como Discos duros

Controlar ventilador segun la temperatura del disco duro cada 5 mins

Crear script: nano /usr/local/sbin/ventilador.sh #!/bin/bash TEMP=$(smartctl -a /dev/sda | grep Temperature_Celsius | cut -c88-90) #Para que arranque el ventilador echo 150 >  /sys/class/hwmon/hwmon0/device/pwm1 if [ $TEMP -ge 55 ]; then        beep -l 1000 -r 3        echo 255 >  /sys/class/hwmon/hwmon0/device/pwm1 elif [ $TEMP -ge 52 ]; then     echo 220 >  /sys/class/hwmon/hwmon0/device/pwm1 elif [ $TEMP -ge 50 ]; then     echo 150 >  /sys/class/hwmon/hwmon0/device/pwm1 elif [ $TEMP -ge 45 ]; then     echo 120 >  /sys/class/hwmon/hwmon0/device/pwm1 elif [ $TEMP -ge 42 ]; then     echo 95 >  /sys/class/hwmon/hwmon0/device/pwm1 elif [ $TEMP -ge 40 ]; then     echo 60 >  /sys/class/hwmon/hwmon0/device/pwm1 elif [ $TEMP -ge 35 ]; then     echo 20 >  /sys/class/hwmon/hwmon0/d...