From 48298e6ae6e3e06aa997ae17506eb75847eff57e Mon Sep 17 00:00:00 2001 From: derry Date: Tue, 16 Aug 2022 23:02:59 +0800 Subject: [PATCH] add uci defaults file --- luci-app-oaf/root/etc/uci-defaults/91_luci-oaf | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 luci-app-oaf/root/etc/uci-defaults/91_luci-oaf diff --git a/luci-app-oaf/root/etc/uci-defaults/91_luci-oaf b/luci-app-oaf/root/etc/uci-defaults/91_luci-oaf new file mode 100755 index 0000000..b9f5023 --- /dev/null +++ b/luci-app-oaf/root/etc/uci-defaults/91_luci-oaf @@ -0,0 +1,13 @@ +#!/bin/sh + +uci -q batch <<-EOF >/dev/null + del ucitrack.@appfilter[-1] + add ucitrack appfilter + set ucitrack.@appfilter[-1].exec="/usr/bin/oaf_rule reload" + commit ucitrack +EOF + +# remove LuCI cache +rm -rf /tmp/luci-indexcache /tmp/luci-modulecache + +exit 0