alfred: not only wait for the interface, but also a link-local address 126/head
authorMatthias Schiffer <mschiffer@universe-factory.net>
Sun, 9 Aug 2015 16:03:28 +0000 (18:03 +0200)
committerMatthias Schiffer <mschiffer@universe-factory.net>
Sun, 9 Aug 2015 16:15:27 +0000 (18:15 +0200)
commitc40c8024eed8ed5dfd35c211a1af4a87c9f157a3
tree213da9b77db5266c59ea73a61025a0f450088a33
parentcfefe9fccae2332d147fd9bae7c72d15a42d1982
alfred: not only wait for the interface, but also a link-local address

Changes between alfred 2015.0 and 2015.1 cause alfred to print an error
and exit when the interface to bind to is not completely set up (has no
non-tentative link-local address). As a workaround, wait for such an
address by reading /proc/net/if_inet6 before alfred is started.

In the long term, it would be nice to make alfred more robust against
missing interfaces (allowing alfred to start without the interface
existing, and keeping it working even when the interface is removed and
re-added while alfred is running).

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
alfred/files/alfred.init