20240721
This commit is contained in:
parent
17b03778ac
commit
5f1b118ff3
26 changed files with 164 additions and 160 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue