wg-installer: fix typo in cleanup function
authorNick Hainke <vincent@systemli.org>
Sun, 9 Jan 2022 12:13:47 +0000 (13:13 +0100)
committerNick Hainke <vincent@systemli.org>
Sun, 9 Jan 2022 12:33:03 +0000 (13:33 +0100)
The delete variable was misspelled leading to devices always being
removed although they had connected neighbors.

Signed-off-by: Nick Hainke <vincent@systemli.org>
net/wg-installer/common/wg.sh

index 6a9ac9c65a896fea899919e8b89a7ff76d4992b4..c6d02d92c773c61faa36cbd7f7f35b8c1173967d 100644 (file)
@@ -32,7 +32,7 @@ check_wg_neighbors() {
         delete=1
         for ip in $ips; do
             if [ $ip != $linklocal ] && [ $(owipcalc $ip linklocal) -eq 1 ]; then
-                delte=0
+                delete=0
                 break
             fi
         done