summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-upnp/root
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-upnp/root')
-rwxr-xr-xapplications/luci-upnp/root/etc/uci-defaults/luci-upnp10
1 files changed, 8 insertions, 2 deletions
diff --git a/applications/luci-upnp/root/etc/uci-defaults/luci-upnp b/applications/luci-upnp/root/etc/uci-defaults/luci-upnp
index 3165b07b99..fe22a3e3c1 100755
--- a/applications/luci-upnp/root/etc/uci-defaults/luci-upnp
+++ b/applications/luci-upnp/root/etc/uci-defaults/luci-upnp
@@ -1,3 +1,9 @@
#!/bin/sh
-/etc/init.d/miniupnpd stop
-/etc/init.d/miniupnpd disable
+
+/etc/init.d/miniupnpd enabled && {
+ /etc/init.d/miniupnpd stop
+ /etc/init.d/miniupnpd disable
+}
+
+rm -f /tmp/luci-indexcache
+exit 0