fix rt-setup post script on spec file

This commit is contained in:
Yoshiaki Senda 2023-03-15 19:38:36 +00:00 committed by John Kacur
parent 50f83519c5
commit 04c44aa7eb

View File

@ -47,7 +47,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
@ -60,7 +60,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