diff --git a/luci-app-mentohust/root/etc/uci-defaults/luci-mentohust b/luci-app-mentohust/root/etc/uci-defaults/luci-mentohust index c85860c..44d6efa 100755 --- a/luci-app-mentohust/root/etc/uci-defaults/luci-mentohust +++ b/luci-app-mentohust/root/etc/uci-defaults/luci-mentohust @@ -1,11 +1,13 @@ #!/bin/sh +[ -f "/etc/config/ucitrack" ] && { uci -q batch <<-EOF >/dev/null delete ucitrack.@mentohust[-1] add ucitrack mentohust set ucitrack.@mentohust[-1].init=mentohust commit ucitrack EOF +} rm -rf /tmp/luci-indexcache* exit 0 diff --git a/luci-app-mentohust/root/usr/share/ucitrack/luci-app-mentohust.json b/luci-app-mentohust/root/usr/share/ucitrack/luci-app-mentohust.json new file mode 100644 index 0000000..4fbcfda --- /dev/null +++ b/luci-app-mentohust/root/usr/share/ucitrack/luci-app-mentohust.json @@ -0,0 +1,4 @@ +{ + "config": "mentohust", + "init": "mentohust" +}