coova-chilli: Fix unwanted startup of disabled instances
authorPetr Štetiar <redacted>
Mon, 18 Mar 2019 10:53:23 +0000 (11:53 +0100)
committerPetr Štetiar <redacted>
Wed, 25 Sep 2019 10:59:55 +0000 (12:59 +0200)
commit9d3a1a2a6359257f8b29202c149c5bce8b4e89e4
tree7ade14a89d64f688a725159646344e5e67404f2e
parentaa6dfc5978226e6897559b1e4ffd0f722e2c8bd4
coova-chilli: Fix unwanted startup of disabled instances

Code in option_cb was referencing $chilli_inst variable which was
declared as local, thus the instance startup logic in start_chilli was
referencing variable which would always get value of 1, effectively
making `disabled` config option useless.

So I've fixed it with simpler config_get_bool and while at it, I've simplified the
surrounding code little bit as well.

Signed-off-by: Petr Štetiar <redacted>
net/coova-chilli/files/chilli.init
git clone https://git.99rst.org/PROJECT