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