Fix restart only when started

This commit is contained in:
Pierre-Hugues Husson 2018-05-19 18:43:25 +02:00
parent b139f72be4
commit 1b5659be4f

View File

@ -31,8 +31,12 @@ fixSPL() {
chcon "$ctxt" /mnt/phh/$b chcon "$ctxt" /mnt/phh/$b
mount -o bind /mnt/phh/$b $f mount -o bind /mnt/phh/$b $f
done done
[ "$(getprop init.svc.keymaster-3-0)" == "running" ] && setprop ctl.restart keymaster-3-0 if [ "$(getprop init.svc.keymaster-3-0)" == "running" ];then
[ "$(getprop init.svc.teed)" == "running" ] && setprop ctl.restart teed setprop ctl.restart keymaster-3-0
fi
if [ "$(getprop init.svc.teed)" == "running" ];then
setprop ctl.restart teed
fi
fi fi
} }