#!/bin/execlineb -P s6-envdir -i /etc/s6/env/path importas -i PATH PATH s6-envdir -i /etc/s6/env/interface.wg-tunnel.static.route.4 importas -i ROUTE ROUTE emptyenv export PATH $PATH define INTERFACE wg-tunnel fdclose 1 fdclose 2 exec ip -4 route del ${ROUTE} dev ${INTERFACE}