wireguard module: add device name environment var

This makes the interface name available as an environment variable for
the pre/post hooks.
This commit is contained in:
Franz Pletz 2017-08-23 23:02:47 +02:00
parent 4f8c5331c8
commit 711303952e
No known key found for this signature in database
GPG Key ID: 846FDED7792617B4

View File

@ -195,6 +195,7 @@ let
description = "WireGuard Tunnel - ${name}";
after = [ "network.target" ];
wantedBy = [ "multi-user.target" ];
environment.DEVICE = name;
serviceConfig = {
Type = "oneshot";