From aaf1d86028f58d746283172060e802fe13ca41b6 Mon Sep 17 00:00:00 2001 From: Bart Van Der Meerssche Date: Wed, 29 Sep 2010 14:34:23 +0200 Subject: [PATCH] rm indexcache when stopping lucid --- mote/v1/openwrt/package/luci/libs/lucid/root/etc/init.d/lucid | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mote/v1/openwrt/package/luci/libs/lucid/root/etc/init.d/lucid b/mote/v1/openwrt/package/luci/libs/lucid/root/etc/init.d/lucid index 1b2b04e..7d17c85 100755 --- a/mote/v1/openwrt/package/luci/libs/lucid/root/etc/init.d/lucid +++ b/mote/v1/openwrt/package/luci/libs/lucid/root/etc/init.d/lucid @@ -9,6 +9,7 @@ set -e start() { echo -n "Starting $DESC: $NAME" + [ -e /tmp/luci-indexcache ] && rm /tmp/luci-indexcache lua -lluci.lucid -e 'luci.lucid.start()' echo "." } @@ -16,6 +17,7 @@ start() { stop() { echo -n "Stopping $DESC: $NAME" lua -lluci.lucid -e 'luci.lucid.stop()' + [ -e /tmp/luci-indexcache ] && rm /tmp/luci-indexcache echo "." }