Fixing monitor-tools interaction with sysctl
Moving monitor-tools' kernel parameter setting from /etc/sysctl.conf to /etc/sysctl.d/100-sysctl.conf That will avoid overwrites and conflicts with other packages that deal with sysctl. Test plan: PASS built iso PASS booted iso, bootstraped. PASS checking if 'kernel.sched_schedstats=1' is set (run cmd after boot: sysctl kernel.sched_schedstats) Story: 2009101 Task: 45060 Signed-off-by: Leonardo Fagundes Luz Serrano <Leonardo.FagundesLuzSerrano@windriver.com> Change-Id: I654d0b4ba1fbb2d7884378e79d4dab875e24d8b4
This commit is contained in:
parent
bbfe72a607
commit
9509043ee6
@ -4,11 +4,8 @@
|
|||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
configure)
|
configure)
|
||||||
grep schedstats /etc/sysctl.conf
|
echo -e "\nkernel.sched_schedstats=1" > /etc/sysctl.d/100-monitor-tools.conf
|
||||||
if [ $? -ne 0 ]; then
|
sysctl -p &>/dev/null
|
||||||
echo -e "\nkernel.sched_schedstats=1" >> /etc/sysctl.conf
|
|
||||||
sysctl -p &>/dev/null
|
|
||||||
fi
|
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user