Skip to content

Commit

Permalink
scripts/action: adapt to MMRL action environment
Browse files Browse the repository at this point in the history
usable heuristics

MMRL=true
CLASSPATH=/data/user_de/0/com.dergoogler.mmrl.debug/cache/main.jar
TMPDIR=/data/user/0/com.dergoogler.mmrl.debug/cache
  • Loading branch information
backslashxx committed Dec 15, 2024
1 parent f6fc309 commit 5867476
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion module/action.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ magisk_webui_redirect=1
# functions
bindhosts_sh() {
sh $MODDIR/bindhosts.sh
[ -z "$MAGISKTMP" ] && sleep 2
if [ -z "$MAGISKTMP" ] && [ -z "$MMRL" ]; then
# no need to sleep on Magisk nor MMRL
# environment stops exec and lets user read
sleep 2
fi
exit 0
}

Expand Down

0 comments on commit 5867476

Please sign in to comment.