Fix OpenWrt init ash syntax

This commit is contained in:
kzolotarev95 committed 2026-06-30 11:59:46 +04:00
1 parent 13290bf8ab
commit deb82b6104
2 files changed
+3 -5

No files matched your search

+1 -1
View File
@@ -26,7 +26,7 @@ config_enabled() {
stop_xray_processes() {
local config pids pid
config="$(uci_get xray_config /etc/xray/owrt-remote-client.json)"
pids="$((ps w 2>/dev/null || ps 2>/dev/null) | grep '[x]ray' | grep -F "$config" | awk '{print $1}')"
pids="$( (ps w 2>/dev/null || ps 2>/dev/null) | grep '[x]ray' | grep -F "$config" | awk '{print $1}')"
for pid in $pids; do
kill "$pid" >/dev/null 2>&1 || true
done