2022-09-14 08:41:14 +00:00
|
|
|
#!/bin/execlineb -P
|
2022-11-26 13:36:37 +00:00
|
|
|
define INTERFACE wg-tunnel
|
|
|
|
|
|
|
|
s6-envdir -i /etc/s6/env/interface.${INTERFACE}.static.addr.4
|
2022-10-18 19:06:48 +00:00
|
|
|
importas -i ADDR ADDR
|
2022-11-26 13:36:37 +00:00
|
|
|
|
2023-02-01 08:50:08 +00:00
|
|
|
s6-envdir -i /etc/s6/env/path
|
|
|
|
emptyenv -p
|
2022-09-14 08:41:14 +00:00
|
|
|
|
2023-02-01 08:50:08 +00:00
|
|
|
ip -4 address add $ADDR dev $INTERFACE
|