This commit is contained in:
ange 2025-07-21 13:08:28 +00:00
parent 17b03778ac
commit 5f1b118ff3
Signed by: ange
GPG key ID: 9E0C4157BB7BEB1D
26 changed files with 164 additions and 160 deletions

View file

@ -21,8 +21,10 @@ if [ "$1" != off ]; then
CMD=(
"basename -s.conf '/etc/wireguard/$1'*.conf > '$d/1'"
"inotifywait -e close_write '$d/2'"
"up=\"\$(cat '$d/2')\""
"[ -z \"\$up\" ] && exit"
"${CMD[@]}"
"wg-quick up \"\$(cat '$d/2')\""
"wg-quick up \"\$up\""
)
fi