small-package/luci-app-oaf/root/etc/uci-defaults/91_luci-oaf

12 lines
248 B
Plaintext
Raw Normal View History

2022-08-16 23:47:10 +08:00
#!/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