<div dir="ltr">I might be missing something, but I don't see why that wait/poll section is necessary as in the next section you poll for default route to be available which will only be available if at least an interface other than loopback with an IP address is up. Of course theoretically it is possible that someone sets the default route manually pointing to the loopback interface. :) But in that case boot.log will not be filled with or without waiting for first active interface as NIC1 is empty. So I would simply remove that section and keep only dummy variable. Let me know your thoughts.<div><div><br></div><div>Orig:<div>   # first get first active network device</div><div>    local dev dummy n<br><br>    n=0<br>    until [ $n = 7 ]; do<br>        dev=$(ip ad show up | awk -F': ' '/^[0-9]/ && ! / lo:/ {print $2;exit}')<br>      if [ -z "$dev" ]; then<br>            sleep 2 # if interface needs some time to come up<br> else<br>      break<br>   fi<br>    n=$(($n + 1))<br>    done<br></div><div><br></div><div>Proposed:</div><div>local dummy<br></div></div><div><br></div><div>Kind Regards, </div><div>Szilard</div></div></div>