10 Commits

Author SHA1 Message Date
taamarin
6074f4c6f0 fix(scripts): use /system/bin/sh and add curl timeout options in box.tool 2025-09-05 10:25:16 +07:00
taamarin
d28ba2f645 scripts: add settings.ini validation to all entry scripts
- Added syntax validation for `/data/adb/box/settings.ini` at the start of:
  * box.inotify
  * box.iptables
  * box.service
  * box.tool
  * ctr.inotify
  * start.sh
- If validation fails, an error message is logged to
  `/data/adb/box/run/settings_err.log` and the script exits immediately.
- Ensures misconfigured settings.ini do not break runtime scripts.
2025-08-17 05:23:42 +07:00
taamarin
768d5bbeb5 feat: improve logging, add help menus, and enhance update/reload routines
- box.inotify: redirect service actions to inotify.log instead of service.log
- box.iptables: add help|-h|--help commands with usage descriptions, remove color codes from errors
- box.service:
  - rewrite log cleanup to timestamped backup with clearer messages
  - add help menu for service control commands
  - remove unnecessary inline comments
- box.tool:
  - add detailed logging for config checks, reload, and update operations
  - improve error handling and skip steps on failure
  - add backup steps before updating curl, yq, and other binaries
  - enhance geo data update with explicit logging and cleanup
  - refine kernel updates for sing-box, clash, xray/v2fly, hysteria with clearer output and checks
  - improve cgroup management log messages
  - add comprehensive help menu for all commands
2025-08-11 07:17:23 +07:00
tearmoon
bc15f3d99e Simplified script directory determination. 2024-02-01 16:52:50 +07:00
shioeri
b9e6ae0635 limit the search find only to the directory level, ignoring subdirectories.
minor fix
2023-07-18 19:26:58 +07:00
shioeri
9cf7461b13 fix: freeze issue when the settings.ini file is missing. 2023-07-11 00:26:31 +07:00
taamarin
e6516c80d8 Adapting the Scripts 2023-07-04 00:01:16 +07:00
ReynaGoshiki
f9995fd737 add: subscribe sing-box
- sync tproxy port singbox
- fix some bug, unzip: couldn't create file ${box_dir}/bin/[xray/v2fly] Text file busy
- miscellaneous and minor fix

Changes to be committed:
	modified:   .github/workflows/debug.yml
	modified:   box/clash/.note
	modified:   box/clash/config.yaml
	renamed:    box/clash/provide/domestic.yml -> box/clash/provide/subscription.yml
	modified:   box/scripts/box.inotify
	modified:   box/scripts/box.iptables
	modified:   box/scripts/box.service
	modified:   box/scripts/box.tool
	modified:   box/scripts/start.sh
	modified:   box/settings.ini
	modified:   box/sing-box/.note
	modified:   box/sing-box/config.json
	modified:   customize.sh
2023-06-25 11:19:45 +07:00
sheynsw
c3d67d39ec change:
- adjust: blacklist / whitelist
- adjust: scripts for CLASH TUN
- fix: "network_mode" ( redirect: tcp only, / tproxy: for tcp+udp with tproxy, / mixed: mode with redirect[tcp] + tun[udp] )

Changes to be committed:
       modified:   box/scripts/box.inotify
       modified:   box/scripts/box.iptables
       modified:   box/scripts/box.service
       modified:   box/scripts/box.tool
       modified:   box/scripts/start.sh
       modified:   box/settings.ini
2023-05-05 15:49:18 +07:00
sheynsw
56e1538a38 feat: add KernelSU support 2023-04-04 16:12:21 +07:00