From 30123292aa04378fc4b34aebb1a0c10eb80472e0 Mon Sep 17 00:00:00 2001 From: litinoveweedle <15144712+litinoveweedle@users.noreply.github.com> Date: Wed, 4 Feb 2026 19:33:05 +0100 Subject: [PATCH] implement waiting for opevpn interface to come up --- qbittorrent/rootfs/usr/local/sbin/vpn | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/qbittorrent/rootfs/usr/local/sbin/vpn b/qbittorrent/rootfs/usr/local/sbin/vpn index 489f85493..2d2bd6290 100755 --- a/qbittorrent/rootfs/usr/local/sbin/vpn +++ b/qbittorrent/rootfs/usr/local/sbin/vpn @@ -361,6 +361,16 @@ _openvpn_up() { --up-restart \ --route-nopull \ --route-noexec" || return 1 + + #wait for slow OpenVPN interface to come up + for i in {1..10}; do + if ip link show "${config["Interface"]}" > /dev/null 2>&1 ; then + return 0 + fi + sleep 2 + done + bashio::log.error "OpenVPN interface ${config["Interface"]} failed to come up." + return 1 } _openvpn_down() {