Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 112197 | Differences between
and this patch

Collapse All | Expand All

(-)Linux/build.sh (-3 / +3 lines)
Lines 13-21 error () Link Here
13
check_kernel_version ()
13
check_kernel_version ()
14
{
14
{
15
	M="$1/Makefile"
15
	M="$1/Makefile"
16
	VER=$(grep '^VERSION *=' "$M" | head -1 | tr -d ' ' | cut -d'=' -f2)
16
	VER=$(grep '^VERSION *=' "$M" | head -n 1 | tr -d ' ' | cut -d'=' -f2)
17
	VER=$VER.$(grep '^PATCHLEVEL *=' "$M" | head -1 | tr -d ' ' | cut -d'=' -f2)
17
	VER=$VER.$(grep '^PATCHLEVEL *=' "$M" | head -n 1 | tr -d ' ' | cut -d'=' -f2)
18
	VER=$VER.$(grep '^SUBLEVEL *=' "$M" | head -1 | tr -d ' ' | cut -d'=' -f2)
18
	VER=$VER.$(grep '^SUBLEVEL *=' "$M" | head -n 1 | tr -d ' ' | cut -d'=' -f2)
19
19
20
	[ $VER = $( uname -r | tr -- - . | cut -d. -f1-3) ] && return 0
20
	[ $VER = $( uname -r | tr -- - . | cut -d. -f1-3) ] && return 0
21
	return 1
21
	return 1

Return to bug 112197