Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37732633
en ru br
ALT Linux repos
5.0: r2-alt1
4.1: r2-alt1
4.0: r2-alt1

Group :: System/Configuration/Hardware
RPM: firmwarekit

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: alt_thermal.patch
Download


diff -ruN linuxfirmwarekit-orig/thermal_trip/thermal_trip.sh linuxfirmwarekit/thermal_trip/thermal_trip.sh
--- linuxfirmwarekit-orig/thermal_trip/thermal_trip.sh	2007-02-08 22:02:47 +0300
+++ linuxfirmwarekit/thermal_trip/thermal_trip.sh	2007-02-14 20:35:26 +0300
@@ -189,7 +189,7 @@
 		fi
 
 		#check for difference
-		if ( [ "$NEW_THROT" -gt "$CUR_THROT" ] || [ "$NEW_CPUFREQ" -lt "$CUR_CPUFREQ" ] )
+		if ( [ -n "$CUR_THROT" ] && ( [ "$NEW_THROT" -gt "$CUR_THROT" ] || [ "$NEW_CPUFREQ" -lt "$CUR_CPUFREQ" ] ))
 		then
 			#yes, throttling is effective
 			case "$OUTPUTTYPE" in
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin