From: Michael Tremer Date: Mon, 30 Sep 2024 18:05:48 +0000 (+0200) Subject: wireguard: Store the connection name as an alias X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=aba4372e3ec4001bafb32f94eae9698dcb174259;p=people%2Fms%2Fipfire-2.x.git wireguard: Store the connection name as an alias This way it is easier to find the correct interface on the console. Signed-off-by: Michael Tremer --- diff --git a/src/initscripts/system/wireguard b/src/initscripts/system/wireguard index df50259f0..552025e25 100644 --- a/src/initscripts/system/wireguard +++ b/src/initscripts/system/wireguard @@ -181,6 +181,9 @@ generate_config() { # Skip peers that are not enabled [ "${enabled}" = "on" ] || continue + # Update the interface alias + ip link set "${intf}" alias "${name}" + echo "[Interface]" if [ -n "${privkey}" ]; then