Commit graph

13 commits

Author SHA1 Message Date
Sungbo Eo
23a44aab2a coova-chilli: enable service by default
If "disabled" option does not exist, service should be enabled.

Fixes: #10392

Signed-off-by: Sungbo Eo <mans0n@gorani.run>
2020-01-03 20:50:00 +09:00
Sungbo Eo
2ce311209d coova-chilli: remove redundant options from config file
"fg" and "pidfile" parameters are already used in the init script,
so they are not controllable by config file anyway.

Signed-off-by: Sungbo Eo <mans0n@gorani.run>
2020-01-03 20:49:22 +09:00
Petr Štetiar
dd39acba55 coova-chilli: Fix debug flag config example and synchronize bool options
debug is boolean option/flag so setting it to 9 doesn't work, while at
it I've synchronized boolean options from source code and sorted it
alphabeticaly with following command:

  grep flag src/cmdline.ggo | cut -d \" -f2 | sort | tr '\n' '|'

Signed-off-by: Petr Štetiar <ynezz@true.cz>
2019-09-25 13:00:22 +02:00
Petr Štetiar
9d3a1a2a63 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 <ynezz@true.cz>
2019-09-25 12:59:55 +02:00
Petr Štetiar
aa6dfc5978 coova-chilli: Wrap excessively long lines
Signed-off-by: Petr Štetiar <ynezz@true.cz>
2019-09-25 12:59:55 +02:00
Rosen Penev
d0b67d72a5
Merge pull request #4911 from aleksander0m/coova-chili-fw-fix
net/coova-chili: update default firewall setup
2019-03-26 18:11:23 -07:00
Jaehoon You
258cbcdb89 coova-chilli: switch to procd
Signed-off-by: Jaehoon You <teslamint@gmail.com>
2018-04-23 13:34:44 +08:00
Aleksander Morgado
272d234c0a net/coova-chili: update default firewall setup
Remove the obsolete firewall configuration as the legacy firewall
package was removed in a901329781eae4716c21d3d8f70a18501d9f2352.

And at the same time, define in the configuration the correct paths
for the firewall rules, installed as /etc/chilli/{up|down}.sh

Signed-off-by: Aleksander Morgado <aleksander@aleksander.es>
2017-10-07 13:23:05 +02:00
Rajan Vaja
ea24eb2409 coova-chilli: Fix removal of old files
Before starting chilli instance, it first removes generated
files (/var/run/chilli*) for the instance. While deleting
generated files, it doesn't match full instance name.

Thus if coova-chilli config file (/etc/config/chilli) has
instances wlan11 and wlan1 in order,
when creating coova-chilli instance for wlan1, it is removing
files generated for wlan11 instances also (as it uses wlan1*
in remove command).

Fix issue by matching full instance name while removing old files.

Signed-off-by: Rajan Vaja <rajan.vaja@gmail.com>
Signed-off-by: Bhargav Patel <br13patel@gmail.com>
2016-08-04 16:53:14 +05:30
Rajan Vaja
bc5561b3e4 coova-chilli: Fix UCI parse error
UCI commands report errors in parsing coova-chilli
sample configuration file. Fix this issue by using
proper format in configuration.

Signed-off-by: Rajan Vaja <rajan.vaja@gmail.com>
2016-07-11 11:59:39 +05:30
Jaehoon You
eed8b9114b coova-chilli: add network option
fix #1221

Signed-off-by: Jaehoon You <teslamint@gmail.com>
2015-06-03 14:41:49 +09:00
Imre Kaloz
45e0e2a0b9 coova-chilli: add uci configuration file, init.d and firewall script 2015-04-28 15:08:15 +02:00
Imre Kaloz
34b96ab26e coova-chilli: move to github
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
2014-11-30 01:13:43 +01:00