get-boot-info

Szilard Matyas-Szegedi szilard.matyas at gmail.com
Wed Dec 11 13:57:44 CET 2019


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 <szilard.matyas at gmail.com> ezt írta (időpont: 2019.
dec. 11., Sze, 13:37):

> Hi Thomas,
> Cool. Thank you.
> Szilard
>
> Thomas Lange <lange at informatik.uni-koeln.de> 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
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20191211/9b65ce04/attachment-0001.html>


More information about the linux-fai mailing list