projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Mods for Linux 3.0 and fix a typo
[yaffs2.git]
/
patch-ker.sh
diff --git
a/patch-ker.sh
b/patch-ker.sh
index 44152c8b8f20270b0cf8b73ce65415454ba87c79..ed54d53505eb37821617d6ae3c12eee7c21536af 100755
(executable)
--- a/
patch-ker.sh
+++ b/
patch-ker.sh
@@
-92,7
+92,7
@@
PATCHLEVEL=`grep -s PATCHLEVEL <$LINUXDIR/Makefile | head -n 1 | sed s/'PATCHLEV
SUBLEVEL=`grep -s SUBLEVEL <$LINUXDIR/Makefile | head -n 1 | sed s/'SUBLEVEL = '//`
# Can we handle this version?
SUBLEVEL=`grep -s SUBLEVEL <$LINUXDIR/Makefile | head -n 1 | sed s/'SUBLEVEL = '//`
# Can we handle this version?
-if [ $VERSION
-ne 2 -o $PATCHLEVEL -lt
6 ]
+if [ $VERSION
$PATCHLEVEL -lt 2
6 ]
then
echo "Cannot patch kernel version $VERSION.$PATCHLEVEL.$SUBLEVEL, must be 2.6.x or higher"
exit 1;
then
echo "Cannot patch kernel version $VERSION.$PATCHLEVEL.$SUBLEVEL, must be 2.6.x or higher"
exit 1;