Fix Xray install for MIPS targets

This commit is contained in:
kzolotarev95 committed 2026-07-08 23:11:11 +04:00
1 parent 46f4c96d96
commit cf6eb714c4
2 files changed
+62 -1

No files matched your search

+11
View File
@@ -134,6 +134,15 @@ package_manager() {
printf 'unknown'
}
install_xray_runtime() {
local remote_bin
[ "${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"
}
install_file "usr/sbin/owrt-remote" 0755
install_file "etc/init.d/owrt-remote" 0755
install_config
@@ -153,6 +162,8 @@ if [ -x "$(target_path etc/init.d/uhttpd)" ]; then
"$(target_path etc/init.d/uhttpd)" reload >/dev/null 2>&1 || "$(target_path etc/init.d/uhttpd)" restart >/dev/null 2>&1 || true
fi
install_xray_runtime
key="$(make_key)"
ip="$(router_ip)"
ui_version="$(installed_ui_version)"