diff -pur Linux/build.sh Linux-patched/build.sh --- Linux/build.sh 2005-11-11 16:20:12.000000000 +0100 +++ Linux-patched/build.sh 2005-11-11 16:45:27.000000000 +0100 @@ -13,9 +13,9 @@ error () check_kernel_version () { M="$1/Makefile" - VER=$(grep '^VERSION *=' "$M" | head -1 | tr -d ' ' | cut -d'=' -f2) - VER=$VER.$(grep '^PATCHLEVEL *=' "$M" | head -1 | tr -d ' ' | cut -d'=' -f2) - VER=$VER.$(grep '^SUBLEVEL *=' "$M" | head -1 | tr -d ' ' | cut -d'=' -f2) + VER=$(grep '^VERSION *=' "$M" | head -n 1 | tr -d ' ' | cut -d'=' -f2) + VER=$VER.$(grep '^PATCHLEVEL *=' "$M" | head -n 1 | tr -d ' ' | cut -d'=' -f2) + VER=$VER.$(grep '^SUBLEVEL *=' "$M" | head -n 1 | tr -d ' ' | cut -d'=' -f2) [ $VER = $( uname -r | tr -- - . | cut -d. -f1-3) ] && return 0 return 1