adjust bfm scripts

This commit is contained in:
sheynsw
2023-03-30 23:03:21 +07:00
parent e2286c6ced
commit 02132d0bdf
2 changed files with 5 additions and 7 deletions

View File

@@ -39,6 +39,7 @@ network_port() {
/system/bin/netstat -tnulp | grep -q "${tproxy_port}" || log error "tproxy_port: ${tproxy_port} out of sync with config"
fi
if [ "${network_mode}" = "mixed" ] || [ "${proxy_mode}" = "tun" ]; then
sleep 1
/system/bin/ifconfig | grep -q "${tun_device}" || log error "tun_device: '${tun_device}' not found"
fi
}

View File

@@ -4,13 +4,10 @@ scripts=$(realpath $0)
scripts_dir=$(dirname ${scripts})
source /data/adb/box/settings.ini
user_agent="${bin_name}"
# set meta and dev flags
meta=true
# if meta flag is true, download clash.meta
dev=false
# option to download Singbox kernel beta or release
singbox_releases=true
user_agent="box_for_magisk"
meta=true # option to download Clash kernel clash-premium{false} or clash-meta{true}
dev=false # for clash-premium,
singbox_releases=false # option to download Singbox kernel beta or release
# log on terminal
logs() {