From 1d46175e39200dd8776594f63570ee3571f9c271 Mon Sep 17 00:00:00 2001 From: Signor Pellegrino <68112357+flyrouter@users.noreply.github.com> Date: Sun, 14 Sep 2025 00:20:28 +0300 Subject: [PATCH] Update general/overlay/usr/sbin/wireguard Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- general/overlay/usr/sbin/wireguard | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/general/overlay/usr/sbin/wireguard b/general/overlay/usr/sbin/wireguard index ba8254fa..476e831c 100644 --- a/general/overlay/usr/sbin/wireguard +++ b/general/overlay/usr/sbin/wireguard @@ -1,7 +1,7 @@ #!/bin/sh -modprobe wireguard -ip link add dev wg0 type wireguard +modprobe wireguard || { echo "Error: Failed to load wireguard module." >&2; exit 1; } +ip link add dev wg0 type wireguard || { echo "Error: Failed to create wg0 interface." >&2; exit 1; } ( echo "#" echo "[Interface]"