Simplified script directory determination.
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
#!/system/bin/sh
|
||||
|
||||
scripts=$(realpath "$0")
|
||||
scripts_dir=$(dirname "${scripts}")
|
||||
|
||||
scripts_dir="${0%/*}"
|
||||
service_path="${scripts_dir}/box.service"
|
||||
iptables_path="${scripts_dir}/box.iptables"
|
||||
data_box="/data/adb/box"
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#!/system/bin/sh
|
||||
|
||||
scripts=$(realpath "$0")
|
||||
scripts_dir=$(dirname "${scripts}")
|
||||
scripts_dir="${0%/*}"
|
||||
source /data/adb/box/settings.ini
|
||||
|
||||
# Variabel yang digunakan
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#!/system/bin/sh
|
||||
|
||||
scripts=$(realpath "$0")
|
||||
scripts_dir=$(dirname "${scripts}")
|
||||
scripts_dir="${0%/*}"
|
||||
source /data/adb/box/settings.ini
|
||||
|
||||
PROPFILE="/data/adb/modules/box_for_root/module.prop"
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#!/system/bin/sh
|
||||
|
||||
scripts=$(realpath "$0")
|
||||
scripts_dir=$(dirname "${scripts}")
|
||||
scripts_dir="${0%/*}"
|
||||
source /data/adb/box/settings.ini
|
||||
|
||||
# user agent
|
||||
|
||||
@@ -1,17 +1,19 @@
|
||||
#!/system/bin/sh
|
||||
|
||||
scripts_dir="/data/adb/box/scripts"
|
||||
scripts_dir="${0%/*}"
|
||||
file_settings="/data/adb/box/settings.ini"
|
||||
|
||||
moddir="/data/adb/modules/box_for_root"
|
||||
[ -n "$(magisk -v | grep lite)" ] && moddir="/data/adb/lite_modules/box_for_root"
|
||||
|
||||
moddir="/data/adb/modules/box_for_root"
|
||||
if [ -n "$(magisk -v | grep lite &> /dev/null )" ]; then
|
||||
moddir="/data/adb/lite_modules/box_for_root"
|
||||
fi
|
||||
|
||||
if [ -f "/data/adb/ksu/bin/busybox" ]; then
|
||||
# busybox KSU
|
||||
busybox="/data/adb/ksu/bin/busybox"
|
||||
elif [ -f "/data/adb/ap/bin/busybox" ]; then
|
||||
# busybox Apatch
|
||||
# busybox APatch
|
||||
busybox="/data/adb/ap/bin/busybox"
|
||||
else
|
||||
# busybox Magisk
|
||||
|
||||
Reference in New Issue
Block a user