Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

fix on SusE #65

Merged
merged 1 commit into from

2 participants

@poelzi

SuSE does not provide a /etc/redhat-release file, so better not break
when file does not exist

@poelzi poelzi fix flashcache on SuSE
SuSE does not provide a /etc/redhat-release file, so better not break
when file does not exist
26fc9d8
@mohans mohans merged commit 21c99de into facebook:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 30, 2012
  1. @poelzi

    fix flashcache on SuSE

    poelzi authored poelzi committed
    SuSE does not provide a /etc/redhat-release file, so better not break
    when file does not exist
This page is out of date. Refresh to see the latest.
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
Something went wrong with that request. Please try again.