olsrd: fix olsrd starting before network
authorNick Hainke <vincent@systemli.org>
Fri, 18 Jun 2021 08:06:38 +0000 (10:06 +0200)
committerPolynomdivision <vincent@systemli.org>
Wed, 7 Jul 2021 12:56:57 +0000 (14:56 +0200)
commit911c0cb45a38f65f3c5c7baf4f3f4fc311f4da6e
tree7a215feaf884e4c13c737acf63a2c2f0c3dbfece
parent5a09ac11803e778c7486f69ca7e4bce42ff18b5f
olsrd: fix olsrd starting before network

Should fix #691.

Sometimes the wifi interface is not ready before olsrd tries to access
it. This leads to warnings in the form of:

daemon.info olsrd: /etc/rc.d/S65olsrd: olsrd_write_interface()
Warning: Interface 'wireless0' not found, skipped
daemon.notice procd: /etc/rc.d/S65olsrd: olsrd: /etc/rc.d/S65olsrd:
olsrd_write_interface() Warning: Interface 'wireless0' not found, skipped

We make use of the "wait_for" procd command that allows us to wait for
the network before starting olsrd.

Tested-by: Noki
Signed-off-by: Nick Hainke <vincent@systemli.org>
olsrd/files/olsrd4.init
olsrd/files/olsrd6.init