ports/main/nnd-s6-services/rc/interface.wg-tunnel.static..../up

15 lines
278 B
Plaintext
Raw Normal View History

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