Description: pbbuttonsd is not rewritten for kernel 3.2
Author: Mathieu Malaterre <malat@debian.org>
Origin: https://bugs.gentoo.org/show_bug.cgi?id=429306#c1
Bug-Debian: http://bugs.debian.org/711685
Reviewed-by: Mathieu Malaterre <malat@debian.org>

Index: pbbuttonsd-0.7.9/scripts/scripts.d/cpufreq
===================================================================
--- pbbuttonsd-0.7.9.orig/scripts/scripts.d/cpufreq
+++ pbbuttonsd-0.7.9/scripts/scripts.d/cpufreq
@@ -18,7 +18,7 @@ KVER=`uname -r`
 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 @@ case "$1" in
    ;;
   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
