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

11 lines
215 B
Plaintext
Raw Normal View History

#!/bin/execlineb -P
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
2023-02-01 08:50:08 +00:00
s6-envdir -i /etc/s6/env/path
emptyenv -p
2023-02-01 08:50:08 +00:00
ip -4 address add $ADDR dev $INTERFACE