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

11 lines
217 B
Plaintext

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