From 7e17123198124b6c8a51ca0316e637e8e7d58f72 Mon Sep 17 00:00:00 2001 From: xuweibj Date: Fri, 26 Oct 2018 02:19:51 -0400 Subject: [PATCH] support centos to build ipmitool --- ipmitool/bldipmi.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ipmitool/bldipmi.pl b/ipmitool/bldipmi.pl index 510cac8..c4f276a 100755 --- a/ipmitool/bldipmi.pl +++ b/ipmitool/bldipmi.pl @@ -13,6 +13,10 @@ if (grep /Red Hat Enterprise Linux Server release 5\.\d/, @output) { $os = "rh6"; } elsif (grep /Red Hat Enterprise Linux Server release 7\.\d/, @output) { $os = "rh7"; +} elsif (grep /CentOS Linux release 7\.\d/, @output) { + $os = "rh7"; +} elsif (grep /CentOS release 6\.\d/, @output) { + $os = "rh6"; } elsif (grep /SUSE Linux Enterprise Server 10/, @output) { $os = "sles10"; } elsif (grep /SUSE Linux Enterprise Server 11/, @output) {