add uci defaults file
This commit is contained in:
parent
ee547e161e
commit
48298e6ae6
13
luci-app-oaf/root/etc/uci-defaults/91_luci-oaf
Executable file
13
luci-app-oaf/root/etc/uci-defaults/91_luci-oaf
Executable file
@ -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
|
Loading…
Reference in New Issue
Block a user