Skip to content

kipfw: fix Linux kernel version detection#2

Open
antonshi wants to merge 1 commit intoluigirizzo:masterfrom
antonshi:fix-version-detection
Open

kipfw: fix Linux kernel version detection#2
antonshi wants to merge 1 commit intoluigirizzo:masterfrom
antonshi:fix-version-detection

Conversation

@antonshi
Copy link

Current version detection scheme doesn't work properly with
all Linux version numbers. For example, grep '2.4' will return
non-zero string for version number 30244 (Linux 3.2.68):

$ echo 30244 | grep '2.4'
30244

It will lead to execution of Makefile section for the linux 2.4 version.

This patch fixes the regular expression used by grep in Makefile, so
only 3 first digits of Linux version numbers are matched to the pattern.

Signed-off-by: Anton Tikhomirov anton.tikhomirov@cdnetworks.co.kr

Current version detection scheme doesn't work properly with
all Linux version numbers. For example, grep '2.4' will return
non-zero string for version number 30244 (Linux 3.2.68):

$ echo 30244 | grep '2.4'
30244

It will lead to execution of Makefile section for the linux 2.4 version.

This patch fixes the regular expression used by grep in Makefile, so
only 3 first digits of Linux version numbers are matched to the pattern.

Signed-off-by: Anton Tikhomirov <anton.tikhomirov@cdnetworks.co.kr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant