2022-09-25 15:59:44 +00:00
|
|
|
#!/bin/execlineb -P
|
2022-11-26 13:36:37 +00:00
|
|
|
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
|
2022-11-26 13:36:37 +00:00
|
|
|
|
2023-02-01 08:50:08 +00:00
|
|
|
s6-envdir -i /etc/s6/env/path
|
|
|
|
emptyenv -p
|
2022-09-25 15:59:44 +00:00
|
|
|
|
2023-02-01 08:50:08 +00:00
|
|
|
ip -4 route del $ROUTE dev $INTERFACE
|