Skip to content

Commit

Permalink
scripts/action: tweak sleep logic in action
Browse files Browse the repository at this point in the history
in preparation of tiann/KernelSU#2321
  • Loading branch information
backslashxx committed Dec 27, 2024
1 parent abf1e4f commit dfe5ed5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions module/action.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ bindhosts_sh() {
sh $MODDIR/bindhosts.sh --action
# print exec time
echo "[+] execution time: $(( $(date +%s) - start_time ))s"
# no need to sleep on Magisk and MMRL
# environment stops exec and lets user read
[ -z "$MAGISKTMP" ] && [ -z "$MMRL" ] && sleep 2
# 2s sleep on APatch on KernelSU
if [ -z "$MMRL" ] && { [ "$KSU" = "true" ] || [ "$APATCH" = "true" ]; }; then
sleep 2
fi
# exit clean
exit 0
}
Expand Down

0 comments on commit dfe5ed5

Please sign in to comment.