From d82ad652ce76bd9b06f92e33448f26cdb4d827f3 Mon Sep 17 00:00:00 2001
From: Stephen Soltesz <soltesz@opentechinstitute.org>
Date: Mon, 11 Feb 2013 18:18:39 -0500
Subject: [PATCH] leave SYSFS_DEPRECATED disabled for centos6

---
 modify_rh_config.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modify_rh_config.sh b/modify_rh_config.sh
index 4dc5a6b68..e1f26d6af 100755
--- a/modify_rh_config.sh
+++ b/modify_rh_config.sh
@@ -7,7 +7,7 @@ sed -i -e "/\# CONFIG_KVM is not set/d" config-x86-generic-rhel
 sed -i -e "s,CONFIG_MODULE_SIG=y,CONFIG_MODULE_SIG=n,g" config-generic-rhel
 
 # Do not enable CONFIG_SYSFS_DEPRECATED options for Scientific Linux
-if ! grep -q Scientific /etc/redhat-release; then
+if ! grep -qiE "CentOS.*6.3|Scientific" /etc/redhat-release; then
 	sed -i -e "s,# CONFIG_SYSFS_DEPRECATED is not set,CONFIG_SYSFS_DEPRECATED=y,g" config-generic
 	sed -i -e "s,# CONFIG_SYSFS_DEPRECATED_V2 is not set,CONFIG_SYSFS_DEPRECATED_V2=y,g" config-generic
 fi
-- 
2.47.0