Skip to content

Commit

Permalink
scripts: sync up comments from local
Browse files Browse the repository at this point in the history
  • Loading branch information
backslashxx committed Dec 6, 2024
1 parent df8cb83 commit 0176507
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
6 changes: 4 additions & 2 deletions module/action.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,10 @@ esac

if [ -w $target_hostsfile ] ; then
# probe for downloaders
# low pref, no ssl, b-b-b-b-but that libera/freenode(rip) meme
# https doesn't hide the fact that i'm using https so that's why i don't use encryption because everyone is trying to crack encryption so i just don't use encryption because no one is looking at unencrypted data because everyone wants encrypted data to crack
# low pref, no ssl, here we chant the https meme.
# https doesn't hide the fact that i'm using https so that's why i don't use encryption
# because everyone is trying to crack encryption so i just don't use encryption because
# no one is looking at unencrypted data because everyone wants encrypted data to crack
busybox | grep -q wget && alias download='busybox wget -T 10 --no-check-certificate -qO -'
# higher pref, most of the times has ssl on android
which curl > /dev/null 2>&1 && alias download='curl --connect-timeout 10 -s'
Expand Down
12 changes: 7 additions & 5 deletions module/post-fs-data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ mode=0
skip_mount=0

# ksu+susfs operating_mode
# susfs exists so we can hide the bind mount
# if its kernelsu with susfs binary available
# and kmsg has 'susfs_init'
# susfs exists so we can hide the bind mount if binary is available
# and kmsg has 'susfs_init'. though this has an issue if KSU_SUSFS_ENABLE_LOG=n
# we just hope in here that they were built with =y
if [ ${KSU} = true ] && [ -f ${SUSFS_BIN} ] ; then
dmesg | grep -q "susfs_init" && {
mode=1
Expand All @@ -45,8 +45,10 @@ if [ $APATCH = true ]; then
fi

# ZN-hostsredirect operating_mode
# this method works for all but requires zn-hostsredirect and zygisk-next installed
# we can only assume that its on a working state
# method works for all, requires zn-hostsredirect + zygisk-next
# while `znctl dump-zn` gives us an idea if znhr is running,
# znhr starts at late service when we have to decide what to do NOW.
# we can only assume that it is on a working state
# here we unconditionally flag an operating_mode for it
if [ -d /data/adb/modules/hostsredirect ] && [ ! -f /data/adb/modules/hostsredirect/disable ] &&
[ -d /data/adb/modules/zygisksu ] && [ ! -f /data/adb/modules/zygisksu/disable ]; then
Expand Down

0 comments on commit 0176507

Please sign in to comment.