#!/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