Fix Xray recovery after reboot with persistent boot cache

This commit is contained in:
kzolotarev95 committed 2026-10-16 01:29:25 +04:00
1 parent e738d6fa69
commit d61c99cdbc
6 files changed
+1004 -45

No files matched your search

+2 -2
View File
@@ -210,8 +210,8 @@ install_xray_runtime() {
[ "${ROOT%/}" = "" ] || return 0
remote_bin="$(target_path usr/sbin/owrt-remote)"
[ -x "$remote_bin" ] || die "missing $remote_bin after install"
info "Installing Xray to /tmp..."
"$remote_bin" install-xray-tmp || die "failed to install Xray to /tmp"
info "Preparing Xray and its persistent boot cache..."
"$remote_bin" prepare-xray || die "failed to prepare Xray"
}
# Stop the old log writer before replacing its storage code. Its bounded legacy