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

11 lines
217 B
Plaintext
Raw Normal View History

#!/bin/execlineb -P
define INTERFACE wg-tunnel
s6-envdir -i /etc/s6/env/interface.${INTERFACE}.static.route.4
2022-10-18 19:06:48 +00:00
importas -i ROUTE ROUTE
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 route del $ROUTE dev $INTERFACE