]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
wireguard: Store the connection name as an alias
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 30 Sep 2024 18:05:48 +0000 (20:05 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 22 Apr 2025 14:48:53 +0000 (16:48 +0200)
This way it is easier to find the correct interface on the console.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/initscripts/system/wireguard

index df50259f078ee58223c09f4713f8d008e39262ad..552025e25e1f0b7e2f3f1b2fcd468fcad17a9388 100644 (file)
@@ -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