olsrd: hotplug: dont test if daemon is enabled, but look for a written PID-file....
authorBastian Bittorf <bittorf@bluebottle.com>
Mon, 11 Nov 2013 10:46:17 +0000 (11:46 +0100)
committerBastian Bittorf <bittorf@bluebottle.com>
Mon, 11 Nov 2013 10:46:17 +0000 (11:46 +0100)
commitd49b01e8cc2dcee64861affbbc49e8b4abd3df39
treeb7abb7cbac62a26e53bb3d0fc0d5fd8369392354
parent89c2a8bb562412281d1ff070007be16d5a4d8f55
olsrd: hotplug: dont test if daemon is enabled, but look for a written PID-file. this solves the issue, that hotplug fires multiple restarts during boot for each upcoming interface (e.g. lo, lan, wan, wifi1, wifi2) which is racy somehow, but leaves hotplug itself working after normal startup. also reduce forking by directly sourcing '/etc/init.d/olsrd' via rc.common
olsrd/files/olsrd.hotplug.sh