diff --git a/SPECS/rt-setup.spec b/SPECS/rt-setup.spec
index fbacf69..8d3ae7f 100644
--- a/SPECS/rt-setup.spec
+++ b/SPECS/rt-setup.spec
@@ -1,6 +1,6 @@
 Name: rt-setup
 Version: 2.0
-Release: 9%{?dist}
+Release: 10%{?dist}
 License: GPL+
 Summary: Setup RHEL-RT environment details
 Group: System Environment/Base
@@ -42,7 +42,7 @@ make DEST=%{buildroot} install
 %post
 /usr/sbin/groupadd -f -g 71 realtime
 
-if grep kernel.hung_task_panic /etc/sysctl.conf >/dev/null 2>&1
+if grep kernel.hung_task_panic /etc/sysctl.conf /etc/sysctl.d/* >/dev/null 2>&1
 then
 	:
 else
@@ -55,7 +55,7 @@ kernel.hung_task_panic = 0
 EOF
 fi
 
-if grep kernel.hung_task_timeout_secs /etc/sysctl.conf >/dev/null 2>&1
+if grep kernel.hung_task_timeout_secs /etc/sysctl.conf /etc/sysctl.d/* >/dev/null 2>&1
 then
 	:
 else
@@ -93,6 +93,10 @@ rm -rf %{buildroot}
 %attr(0644, root, root) %{_unitdir}/rt-entsk.service
 
 %changelog
+* Wed Mar 29 2023 John Kacur <jkacur@redhat.com> - 2.0.10
+- Fix for rt-setup post script
+Resolves: rhbz#2182816
+
 * Tue Jun 18 2019 Luis Claudio R. Goncalves <lgoncalv@redhat.com> 2.0.9
 - repackage rt-entsk changes [1720202]
 Resolves: rhbz#1720202