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:49:23 +0000 (14:49 +0200)
commit5311c844b62cf0043e1db02f8220c3a5c55f7329
tree0708a046f6f7ac8afbf82f2e51eb55eef5fa1dab
parent17b6e9982597fa6b6341a36d9e92fc75e5decb43
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