11 lines
183 B
Text
11 lines
183 B
Text
|
|
#!/usr/bin/with-contenv bash
|
||
|
|
# Bring up WireGuard if not already up
|
||
|
|
if ! ip link show dev wg0 > /dev/null 2>&1; then
|
||
|
|
wg-quick up wg0
|
||
|
|
else
|
||
|
|
sleep 60
|
||
|
|
fi
|
||
|
|
|
||
|
|
# Exit after running
|
||
|
|
exit 0
|