diff options
Diffstat (limited to 'app-laptop/pbbuttonsd/files/laptopmode.sh.patch')
-rw-r--r-- | app-laptop/pbbuttonsd/files/laptopmode.sh.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/app-laptop/pbbuttonsd/files/laptopmode.sh.patch b/app-laptop/pbbuttonsd/files/laptopmode.sh.patch new file mode 100644 index 000000000000..b3eac6da0464 --- /dev/null +++ b/app-laptop/pbbuttonsd/files/laptopmode.sh.patch @@ -0,0 +1,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 |