As dev is no longer used anywhere else from now on, the section getting it
could be cleaned-up as well with the exception of the dummy variable:
# first get first active network device
local dev dummy n
n=0
until [ $n = 7 ]; do
dev=$(ip ad show up | awk -F': ' '/^[0-9]/ && ! / lo:/ {print
$2;exit}')
if [ -z "$dev" ]; then
sleep 2 # if interface needs some time to come up
else
break
fi
n=$(($n + 1))
done
Thanks again for your fast response.
Have a great day!
Szilard
Szilard Matyas-Szegedi <[email protected]> ezt írta (időpont: 2019.
dec. 11., Sze, 13:37):
> Hi Thomas,
> Cool. Thank you.
> Szilard
>
> Thomas Lange <[email protected]> ezt írta (időpont: 2019.
> dec. 11., Sze, 12:55):
>
>> You issue is now fixed in
>>
>> https://github.com/faiproject/fai/commit/b95d56084255d8512e16724f38aab726dc7fb9d3
>>
>>
>> --
>> regards Thomas
>>
>