added structopt
Some checks are pending
continuous-integration/drone/push Build encountered an error

This commit is contained in:
shimunn
2019-01-19 19:34:27 +01:00
parent 5835ca7ad6
commit 8300e94414
6 changed files with 213 additions and 48 deletions

View File

@@ -47,7 +47,8 @@ setup_iptables "A"
sleep 3
if [ -e "/usr/bin/wg-event-gen" ]; then
sleep 3 && /usr/bin/wg-event-gen /var/run/wireguard/$WG_IF.sock 3000
export WG_EVENT_SOCKET=/var/run/wireguard/$WG_IF.sock
/usr/bin/wg-event-gen
else
while [ -e "/sys/class/net/$WG_IF/operstate" ]; do
sleep 10