Following patch works for me
--- laptop_mode 2011-06-07 10:33:34.449215620 +0300
+++ /usr/sbin/laptop_mode 2011-06-07 11:08:32.837436175 +0300
@@ -490,7 +490,12 @@
KLEVEL="$(uname -r |
{
IFS='.-' read a b c
- echo $a.$b
+ if [ "$a" -eq "3" ] ;
+ then
+ echo $a
+ else
+ echo $a.$b
+ fi
}
)"
KMINOR="$(uname -r |
@@ -504,6 +509,7 @@
case "$KLEVEL" in
"2.4" ) ;;
"2.6" ) ;;
+ "3" ) ;;
*)
log "ERR" "Unhandled kernel version: $KLEVEL ('uname -r'
= '$(uname -r)')" >&2
exit 1

