Skip to content

Commit

Permalink
scripts/action: raise ksuwebui priority
Browse files Browse the repository at this point in the history
if user has ksuwebui and mmrl, we go ksuwebui first.
clearly user has issues with mmrl if he decides to also
install ksuwebui

https://github.com/backslashxx/bindhosts/issues/33
  • Loading branch information
backslashxx committed Dec 16, 2024
1 parent e5ecea7 commit 905352e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions module/action.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,16 @@ bindhosts_sh() {
# detect magisk environment here
if [ ! -z "$MAGISKTMP" ] && [ $magisk_webui_redirect = 1 ] ; then
# courtesy of kow
pm path com.dergoogler.mmrl > /dev/null 2>&1 && {
echo "- Launching WebUI in MMRL WebUI..."
am start -n "com.dergoogler.mmrl/.ui.activity.webui.WebUIActivity" -e MOD_ID "bindhosts"
exit 0
}
pm path io.github.a13e300.ksuwebui > /dev/null 2>&1 && {
echo "- Launching WebUI in KSUWebUIStandalone..."
am start -n "io.github.a13e300.ksuwebui/.WebUIActivity" -e id "bindhosts"
exit 0
}
pm path com.dergoogler.mmrl > /dev/null 2>&1 && {
echo "- Launching WebUI in MMRL WebUI..."
am start -n "com.dergoogler.mmrl/.ui.activity.webui.WebUIActivity" -e MOD_ID "bindhosts"
exit 0
}
fi
bindhosts_sh

Expand Down

0 comments on commit 905352e

Please sign in to comment.