Commit e7653a14 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[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.
parent d14672aa
...@@ -279,7 +279,13 @@ parse_mount_opts_wfstab () { ...@@ -279,7 +279,13 @@ parse_mount_opts_wfstab () {
fi fi
} }
KLEVEL="$(uname -r | cut -c1-3)" KLEVEL=$(
uname -r |
(
IFS="." read a b c
echo $a.$b
)
)
case "$KLEVEL" in case "$KLEVEL" in
"2.4"|"2.6") "2.4"|"2.6")
true true
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment