luci-app-miniupnpd: restore missing luci install file 1004/head
authorKevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
Sat, 11 Feb 2017 19:41:31 +0000 (19:41 +0000)
committerKevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
Sat, 11 Feb 2017 19:48:37 +0000 (19:48 +0000)
Restore luci indexcache handling incorrect removed in
https://github.com/openwrt/luci/commit/387a06bb73462312c075e53ce9e6002d4af09e92

Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
applications/luci-app-upnp/root/etc/uci-defaults/40_luci-miniupnp [new file with mode: 0755]

diff --git a/applications/luci-app-upnp/root/etc/uci-defaults/40_luci-miniupnp b/applications/luci-app-upnp/root/etc/uci-defaults/40_luci-miniupnp
new file mode 100755 (executable)
index 0000000..a338c75
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+uci -q batch <<-EOF >/dev/null
+       delete ucitrack.@upnpd[-1]
+       add ucitrack upnpd
+       set ucitrack.@upnpd[-1]=miniupnpd
+       commit ucitrack
+EOF
+
+rm -f /tmp/luci-indexcache
+exit 0