summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Winter <mwinter@opensourcerouting.org>2017-04-14 02:20:31 -0700
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-06-06 14:34:49 -0400
commit414ec6e96e2dc2a76cbb5baa1772c35c544ce07e (patch)
treebc4a2f19adbf504ef2e26c22c238e686f4f8cdac
parentda69cb8e75f4c543b0cfca089a2ef766faaaa0c5 (diff)
redhat: Fix previously added centos6/redhat6 check
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
-rw-r--r--redhat/frr.spec.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/redhat/frr.spec.in b/redhat/frr.spec.in
index 8ecb63ec94..1ebb7c16ca 100644
--- a/redhat/frr.spec.in
+++ b/redhat/frr.spec.in
@@ -65,7 +65,7 @@
#### Check for RedHat 6.x or CentOS 6.x - they are too old to support PIM.
#### Always disable it on these old systems unconditionally
-%{expand: %%global redhat6 %(if [[ `cat /etc/redhat-release 2> /dev/null` =~ release\ 6\. ]]; then echo 6; fi)}
+%{expand: %%global redhat6 %(if [[ `cat /etc/redhat-release 2> /dev/null` =~ release\ 6\. ]]; then echo 6; else echo 0; fi)}
#
# if CentOS 6 / RedHat 6, then disable PIMd
%if "%{redhat6}" == "6"