diff --git a/box/scripts/box.service b/box/scripts/box.service index 37d1149..ca67e36 100755 --- a/box/scripts/box.service +++ b/box/scripts/box.service @@ -441,8 +441,8 @@ start_box() { create_tun run_box sleep 1 - # Execute crontab_alive if crontab_sec is not equal to "false" - if [ "${crontab_sec}" != "false" ]; then + # Execute crontab_alive if run_crontab is not equal to "false" + if [ "${run_crontab}" != "false" ]; then crontab_alive else log info "crontab: disabled." diff --git a/box/scripts/box.tool b/box/scripts/box.tool index 74b9c37..39338bb 100755 --- a/box/scripts/box.tool +++ b/box/scripts/box.tool @@ -486,19 +486,19 @@ api_restart () { } # Enable ghproxy to accelerate download -if [[ "$use_ghproxy" == false ]] ; then - echo "- It seems that you are downloading from GitHub." - echo "- Do you want to use the GitHub proxy service to download?" - echo "- [ Vol UP: Yes ]" - echo "- [ Vol DOWN: No ]" - while true; do - getevent -lc 1 2>&1 | grep -q KEY_VOLUMEUP && { - use_ghproxy=true - break - } - getevent -lc 1 2>&1 | grep -q KEY_VOLUMEDOWN && break - done -fi +# if [[ "$use_ghproxy" == false ]] ; then + # echo "- It seems that you are downloading from GitHub." + # echo "- Do you want to use the GitHub proxy service to download?" + # echo "- [ Vol UP: Yes ]" + # echo "- [ Vol DOWN: No ]" + # while true; do + # getevent -lc 1 2>&1 | grep -q KEY_VOLUMEUP && { + # use_ghproxy=true + # break + # } + # getevent -lc 1 2>&1 | grep -q KEY_VOLUMEDOWN && break + # done +# fi case "$1" in upyq) @@ -547,7 +547,7 @@ case "$1" in sleep 0.75 update_subs if ! api_restart; then - if [ -f "${pid_file}" ] && [ "${bin_name}" != "clash" ] || [ "${flag}" = "true" ]; then + if [ -f "${pid_file}" ] && [ "${bin_name}" != "clash" ] && [ "${flag}" = "true" ]; then restart_box fi fi diff --git a/box/settings.ini b/box/settings.ini index 5c85f79..b3e1c9e 100755 --- a/box/settings.ini +++ b/box/settings.ini @@ -46,7 +46,7 @@ ignore_out_list=() # Set update interval using cron, for more information: https://crontab.guru/ # set 'true' to enable Cron job interva_update="0 0 * * *" # every 12 p.m -crontab_sec="false" +run_crontab="false" # Type "su -c /data/adb/box/scripts/box.tool geox" to update geox auto_update_geox="true"