From 7862a79903e3e39d3b59c827022654e345bcf6d9 Mon Sep 17 00:00:00 2001 From: fbt Date: Fri, 27 Nov 2026 11:39:33 +0000 Subject: [PATCH] bugfix Signed-off-by: fbt --- services/lo.iface | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/lo.iface b/services/lo.iface index 868a644..a51634e 100755 --- a/services/lo.iface +++ b/services/lo.iface @@ -6,9 +6,9 @@ service_type='oneshot' service_command=( /usr/bin/ip link set "$cfg_iface" up ) ready() { - local iface="$1" timer='0' timeout='6' + local timer='0' timeout='6' - until [[ "$(ip link show $iface up)" ]]; do + until [[ "$(ip link show $cfg_iface up)" ]]; do (( timer >= timeout )) && { return 1; } (( timer++ )) done