vpn: add wireguard watchdog
This commit is contained in:
parent
d44b01019b
commit
73b1862173
|
@ -35,4 +35,12 @@ commit network
|
|||
add_list firewall.vwan.network=wg
|
||||
commit firewall
|
||||
EOI
|
||||
|
||||
# setup re-resolve
|
||||
[ -d /etc/crontabs ] || mkdir /etc/crontabs
|
||||
if ! [ -f /etc/crontabs/root ] || ! grep -q wireguard_watchdog /etc/crontabs/root; then
|
||||
echo "* * * * * $(which wireguard_watchdog)" >> /etc/crontabs/root
|
||||
/etc/init.d/cron enable
|
||||
/etc/init.d/cron start
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue