slitaz-tools rev 963

tazhw: enable fan control
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jan 21 12:01:51 2016 +0100 (2016-01-21)
parents 0f57e55885af
children 9e5c7232ad6f
files tinyutils/tazhw
line diff
     1.1 --- a/tinyutils/tazhw	Tue Dec 29 21:22:37 2015 +0100
     1.2 +++ b/tinyutils/tazhw	Thu Jan 21 12:01:51 2016 +0100
     1.3 @@ -157,6 +157,11 @@
     1.4  		detect_pci_devices
     1.5  		_ 'Detecting USB devices Kernel modules...'
     1.6  		detect_usb_devices ;;
     1.7 +		[ -e /sys/class/thermal/thermal_zone0/mode ] &&
     1.8 +		_ 'Enable fan control...' &&
     1.9 +		for zone in /sys/class/thermal/thermal_zone*/mode; do
    1.10 +			echo -n enabled > $zone
    1.11 +		done ;;
    1.12  	-dp|detect-pci)
    1.13  		check_root
    1.14  		title 'Detected PCI devices Kernel modules'