alfred: Support interface IDs with more than two digits 354/head
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Mon, 19 Mar 2018 13:16:54 +0000 (14:16 +0100)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Mon, 9 Apr 2018 10:11:12 +0000 (12:11 +0200)
commit135bc605b4cf91d40ac97f1129a6a5a950f3ff72
tree8c3f66cab0aa851259446b4666a141682e13c1c2
parent63cae8f571a61ecffb6a1cdad08c551f14b5ae99
alfred: Support interface IDs with more than two digits

Occationally /proc/net/if_inet6 contains interface IDs with
three digits. In this case, the regex in wait_for_ll_address()
does not work anymore and alfred is not starting.

This patch changes the evaluation so that fields are used instead
of the mere position by counting characters.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
alfred/files/alfred.init