Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix flashcache on SuSE

SuSE does not provide a /etc/redhat-release file, so better not break
when file does not exist
  • Loading branch information...
commit 26fc9d8e8254247e5729012e8d3b2086eb806383 1 parent 332fe0f
@poelzi poelzi authored poelzi committed
Showing with 2 additions and 2 deletions.
  1. +1 −1  Makefile
  2. +1 −1  src/Makefile
View
2  Makefile
@@ -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)
View
2  src/Makefile
@@ -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

0 comments on commit 26fc9d8

Please sign in to comment.
Something went wrong with that request. Please try again.