SOURCES: powersave.init - don't try to load modules on restart

freetz freetz at pld-linux.org
Sun Mar 12 21:03:20 CET 2006


Author: freetz                       Date: Sun Mar 12 20:03:20 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- don't try to load modules on restart

---- Files affected:
SOURCES:
   powersave.init (1.8 -> 1.9) 

---- Diffs:

================================================================
Index: SOURCES/powersave.init
diff -u SOURCES/powersave.init:1.8 SOURCES/powersave.init:1.9
--- SOURCES/powersave.init:1.8	Sun Mar 12 20:50:45 2006
+++ SOURCES/powersave.init	Sun Mar 12 21:03:15 2006
@@ -29,11 +29,13 @@
 	# Load default cpufreq module
 	if is_yes "$CPUFREQ_ENABLED"; then
 	    if [ -n "$CPUFREQD_MODULE" ]; then
-            	    _modprobe $i $CPUFREQD_MODULE_OPTS
+		if  [ ! -d /sys/devices/system/cpu/cpu0/cpufreq ]; then
+            	    _modprobe $CPUFREQD_MODULE $CPUFREQD_MODULE_OPTS
 		    # Load available governors
 		    for i in $GOVS; do
 			_modprobe single $i
 		    done
+		fi
     	    fi
 	fi
 	
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/powersave.init?r1=1.8&r2=1.9&f=u



More information about the pld-cvs-commit mailing list