Skip to content
Snippets Groups Projects
Verified Commit d318cdd9 authored by zycromerz's avatar zycromerz
Browse files

add config to run get fps service or not


Signed-off-by: default avatarZyCromerZ <neetroid97@gmail.com>
parent 5e737883
No related branches found
No related tags found
No related merge requests found
......@@ -53,4 +53,6 @@ LetsRunService(){
}
LetsRunService $ModulPath/system/etc/ZyC-Core/core.sh "BOOTmode='1' ModulPath='$(cat /system/etc/ZyC-Core/info/magisk_path)/$MiD'"
[[ -f $ModulPath/system/etc/ZyC-Core/misc/generate-fps.sh ]] && LetsRunService $ModulPath/system/etc/ZyC-Core/misc/generate-fps.sh
\ No newline at end of file
if [[ -f $ModulPath/system/etc/ZyC-Core/misc/generate-fps.sh ]] && [[ "$(cat $ModulPath/system/etc/ZyC-Core/configs/get_fps_service.conf)" == "1" ]];then
LetsRunService $ModulPath/system/etc/ZyC-Core/misc/generate-fps.sh
fi
\ No newline at end of file
0
\ No newline at end of file
......@@ -8,7 +8,7 @@ do
eval $GetAllCmds
done
. /system/etc/ZyC-Core/misc/get-bb.sh
. $ModulPath/system/etc/ZyC-Core/misc/get-bb.sh
. $ModulPath/system/etc/ZyC-Core/misc/initialize.sh
. $ModulPath/system/etc/ZyC-Core/misc/key.sh
. $ModulPath/system/etc/ZyC-Core/misc/funclist.sh
......@@ -18,7 +18,7 @@ sync
while [[ "$MODULE_STATUS" == "1" ]]
do
# always check module status
RunModules="$(cat /system/etc/ZyC-Core/configs/status.conf)"
RunModules="$(cat $MPATH/system/etc/ZyC-Core/configs/status.conf)"
if [[ "$RunModules" == "1" ]];then
if [[ "$BOOTmode" == "1" ]];then
. $MPATH/system/etc/ZyC-Core/main.sh "boot"
......
......@@ -6,7 +6,7 @@
{
Warning
[[ "$1" == "boot" ]] && RunModules="$(cat /system/etc/ZyC-Core/configs/status.conf)"
[[ "$1" == "boot" ]] && RunModules="$(cat $MPATH/system/etc/ZyC-Core/configs/status.conf)"
if [[ "$RunModules" == "1" ]];then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment