summaryrefslogtreecommitdiff
blob: 89ab72a8947fdf3b50f9ee58270237251ab4c515 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- a/scripts/scripts.d/cpufreq
+++ b/scripts/scripts.d/cpufreq
@@ -18,7 +18,7 @@
 case "$1" in
   powersave|custom)
     case "$KVER" in
-      2.6.*)
+      "2.6."*|"3."*)
         if [ -d /sys ]; then
           echo -n "userspace" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
           cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
@@ -41,7 +41,7 @@
    ;;
   performance)
      case "$KVER" in
-      2.6.*)
+      "2.6."*|"3."*)
         if [ -d /sys ]; then
           echo -n "userspace" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
           cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq