summaryrefslogtreecommitdiff
blob: b3eac6da04645ac95adc72f945269494bb39dacb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- scripts/scripts.d/laptopmode.sh.bak	2012-09-09 12:15:45.632869735 -0400
+++ scripts/scripts.d/laptopmode.sh	2012-09-09 12:16:23.157824284 -0400
@@ -122,7 +122,7 @@
 	     )
 	 )
 case "$KLEVEL" in
-	"2.4"|"2.6")
+	"2.4"|"2.6"|"3."*)
 		true
 		;;
 	*)
@@ -222,7 +222,7 @@
 				echo "1"				> /proc/sys/vm/laptop_mode
 				echo "30 500 0 0 $AGE $AGE 60 20 0"	> /proc/sys/vm/bdflush
 				;;
-			"2.6")
+			"2.6"|"3."*)
 				echo "5"				> /proc/sys/vm/laptop_mode
 				echo "$AGE"				> /proc/sys/vm/dirty_writeback_centisecs
 				echo "$AGE"				> /proc/sys/vm/dirty_expire_centisecs
@@ -268,7 +268,7 @@
 			"2.4")
 				echo "30 500 0 0 $U_AGE $B_AGE 60 20 0"	> /proc/sys/vm/bdflush
 				;;
-			"2.6")
+			"2.6"|"3."*)
 				echo "$U_AGE"				> /proc/sys/vm/dirty_writeback_centisecs
 				echo "$B_AGE"				> /proc/sys/vm/dirty_expire_centisecs
 				echo "$DEF_DIRTY_RATIO"			> /proc/sys/vm/dirty_ratio