summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-upnp/root/etc/uci-defaults
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-01-14 17:48:44 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-01-14 17:48:44 +0000
commit6811edb3d9fe289190fbc7337d372027a655daf8 (patch)
treee9019876b2aff8b48a853ded274ece488247a6d5 /applications/luci-upnp/root/etc/uci-defaults
parentba949a84f61729b1cbfecd2780b9c4d5095c2d51 (diff)
applications: revise uci-defaults scripts
Diffstat (limited to 'applications/luci-upnp/root/etc/uci-defaults')
-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