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

11 lines
215 B
Plaintext

#!/bin/execlineb -P
define INTERFACE wg-tunnel
s6-envdir -i /etc/s6/env/interface.${INTERFACE}.static.addr.4
importas -i ADDR ADDR
s6-envdir -i /etc/s6/env/path
emptyenv -p
ip -4 address del $ADDR dev $INTERFACE