]> git.ipfire.org Git - ipfire-2.x.git/commit
wireguard: Don't try to delete any interfaces that don't exist master
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 1 Jun 2025 15:00:51 +0000 (17:00 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 1 Jun 2025 15:00:51 +0000 (17:00 +0200)
commit27ec6f7860da27d046ddeb33809eba897b0766e7
tree795f864847a4c50efc0c21ebe1749fa7e4506204
parent9ef726eeb272104656baf3c38eca75c4dc5bea10
wireguard: Don't try to delete any interfaces that don't exist

When the WireGuard interfaces are being destroyed, we are using some
globbing to identify the right interfaces. If there are no interfaces
the globbing string does not match anything and is returned itself. To
avoid an error when trying to delete an interface that never existed, we
configure the shell to never expand empty globbings.

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