leave SYSFS_DEPRECATED disabled for centos6
authorStephen Soltesz <soltesz@opentechinstitute.org>
Mon, 11 Feb 2013 23:18:39 +0000 (18:18 -0500)
committerStephen Soltesz <soltesz@opentechinstitute.org>
Mon, 11 Feb 2013 23:18:39 +0000 (18:18 -0500)
modify_rh_config.sh

index 4dc5a6b..e1f26d6 100755 (executable)
@@ -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