Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
fix flashcache on SuSE
Browse files Browse the repository at this point in the history
SuSE does not provide a /etc/redhat-release file, so better not break
when file does not exist
  • Loading branch information
poelzi committed Apr 30, 2012
1 parent 332fe0f commit 26fc9d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -3,7 +3,7 @@ KERNEL_TREE ?= /lib/modules/$(shell uname -r)/build
export COMMIT_REV

# Check for RHEL/CentOS
RHEL5_VER ?= $(shell grep 5.[0-9] /etc/redhat-release)
RHEL5_VER ?= $(shell if [ -e /etc/redhat-release ]; then grep 5.[0-9] /etc/redhat-release; else false; fi)
ifneq "$(RHEL5_VER)" ""
RHEL5_TREE := /usr/src/redhat/BUILD/kernel-2.6.18/linux-$(shell uname -r).$(shell uname -i)
KERNEL_TREE := $(RHEL5_TREE)
Expand Down
2 changes: 1 addition & 1 deletion src/Makefile
Expand Up @@ -6,7 +6,7 @@ EXTRA_CFLAGS += -I$(KERNEL_TREE)/drivers/md -I./ -DCOMMIT_REV="\"$(COMMIT_REV)\"
EXTRA_CFLAGS += -I$(KERNEL_TREE)/include/ -I$(KERNEL_TREE)/include/linux

# Check for RHEL/CentOS
RHEL5_VER ?= $(shell grep 5.[0-9] /etc/redhat-release)
RHEL5_VER ?= $(shell if [ -e /etc/redhat-release ]; then grep 5.[0-9] /etc/redhat-release; else false; fi)
RHEL5_SETUP :=
ifneq "$(RHEL5_VER)" ""
RHEL5_SETUP := rhel5-setup
Expand Down

0 comments on commit 26fc9d8

Please sign in to comment.