diff --git a/setup b/setup index facd639ffeb..b6b7c6a381c 100755 --- a/setup +++ b/setup @@ -473,7 +473,7 @@ class LinuxNetwork(Network): continue words = output.split('\n')[0].split() # A valid output starts with the queried address on the first line - if words[0] == command[v][-1]: + if len(words) > 0 and words[0] == command[v][-1]: for i in range(len(words) - 1): if words[i] == 'dev': interface[v]['interface'] = words[i+1]