chilli: fix log spam when coova is not used

Fixes: WIFI-4471
Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
John Crispin
2021-10-01 09:37:35 +02:00
parent b31b236646
commit 406dad6604
2 changed files with 2 additions and 1 deletions

View File

@@ -21,3 +21,4 @@ config chilli
option kname 'chilli'
option debug 0
EOF
/etc/init.d/chilli disable

View File

@@ -2,6 +2,6 @@
[ "$ACTION" == "ifup" ] || exit 0
[ "$INTERFACE" = "wan" ] && {
[ "$INTERFACE" = "wan" -a "$(uci get chilli.@chilli[-1].disabled)" -neq 0 ] && {
/etc/init.d/chilli restart
}