2022-09-14 08:41:14 +00:00
|
|
|
#!/bin/execlineb -P
|
2022-10-18 19:06:48 +00:00
|
|
|
s6-envdir -i /etc/s6/env/path
|
2022-09-14 08:41:14 +00:00
|
|
|
importas -i PATH PATH
|
2022-10-21 18:41:16 +00:00
|
|
|
s6-envdir -i /etc/s6/env/interface.wg-tunnel.static.addr.6
|
2022-10-18 19:06:48 +00:00
|
|
|
importas -i ADDR ADDR
|
2022-09-14 08:41:14 +00:00
|
|
|
emptyenv
|
|
|
|
|
|
|
|
export PATH $PATH
|
|
|
|
define INTERFACE wg-tunnel
|
|
|
|
|
|
|
|
fdclose 1
|
|
|
|
fdclose 2
|
|
|
|
|
|
|
|
exec ip -6 address add ${ADDR} dev ${INTERFACE}
|