From 27ec6f7860da27d046ddeb33809eba897b0766e7 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sun, 1 Jun 2025 17:00:51 +0200 Subject: [PATCH] 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 --- src/initscripts/system/wireguard | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/initscripts/system/wireguard b/src/initscripts/system/wireguard index 7decce223..00862743b 100644 --- a/src/initscripts/system/wireguard +++ b/src/initscripts/system/wireguard @@ -19,6 +19,8 @@ # # ############################################################################### +shopt -s nullglob + . /etc/sysconfig/rc . ${rc_functions} . /etc/rc.d/init.d/networking/functions.network -- 2.39.5