From: Michael Tremer Date: Mon, 28 Jul 2025 13:46:30 +0000 (+0200) Subject: network: Ensure that we only run once at a time X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fheads%2Fbonding;p=people%2Fms%2Fipfire-2.x.git network: Ensure that we only run once at a time Signed-off-by: Michael Tremer --- diff --git a/config/udev/network-hotplug-master b/config/udev/network-hotplug-master index 34cec46a6..ed9cd58c3 100644 --- a/config/udev/network-hotplug-master +++ b/config/udev/network-hotplug-master @@ -25,6 +25,12 @@ eval $(/usr/local/bin/readhash /var/ipfire/ethernet/settings) +# Only run this script once at a time +if [ -z "${LOCKED}" ]; then + export LOCKED=1 + exec flock "${0}" "${0}" "$@" +fi + detect_zone() { local intf="${INTERFACE%?}" intf="${intf%phys}"