diff options
author | Andrew Morton <akpm@osdl.org> | 2004-05-24 18:41:07 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-05-24 18:41:07 -0700 |
commit | e7653a144e03bb79235d307d9da7b32e64436580 (patch) | |
tree | 518948fa074b76950b26d42ad17c2901cb8ec56f /Documentation | |
parent | d14672aa9ccc7587364db6990a678a6e7f7ab6fc (diff) | |
download | history-e7653a144e03bb79235d307d9da7b32e64436580.tar.gz |
[PATCH] Don't use "cut" in laptop mode control script -- it is in /usr.
From: Bart Samwel <bart@samwel.tk>
We don't want to use "cut" in the laptop mode control script, because that
is in /usr. This patch is from Jasper Spaans.
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/laptop-mode.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Documentation/laptop-mode.txt b/Documentation/laptop-mode.txt index 66824e9d7480a8..92048679bd2913 100644 --- a/Documentation/laptop-mode.txt +++ b/Documentation/laptop-mode.txt @@ -279,7 +279,13 @@ parse_mount_opts_wfstab () { fi } -KLEVEL="$(uname -r | cut -c1-3)" +KLEVEL=$( + uname -r | + ( + IFS="." read a b c + echo $a.$b + ) + ) case "$KLEVEL" in "2.4"|"2.6") true |