wlan-ap-Telecominfraproject/feeds/third-party/coova-chilli/files/chilli.hotplug
John Crispin 406dad6604 chilli: fix log spam when coova is not used
Fixes: WIFI-4471
Signed-off-by: John Crispin <john@phrozen.org>
2021-10-01 09:38:30 +02:00

8 lines
157 B
Bash

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