From 32699fd646e50c3434e5f1aabf6edc185aa9e1a8 Mon Sep 17 00:00:00 2001 From: Bart Van Der Meerssche Date: Thu, 28 Apr 2011 23:25:42 +0200 Subject: [PATCH] [luci] stop/start flukso daemon after form commit as well --- .../package/luci/libs/uci/root/sbin/luci-reload | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/mote/v2/openwrt/package/luci/libs/uci/root/sbin/luci-reload b/mote/v2/openwrt/package/luci/libs/uci/root/sbin/luci-reload index 0a6d2cf..1d99281 100755 --- a/mote/v2/openwrt/package/luci/libs/uci/root/sbin/luci-reload +++ b/mote/v2/openwrt/package/luci/libs/uci/root/sbin/luci-reload @@ -39,9 +39,21 @@ avahi_start() { [ -n $AVAHI ] && /etc/init.d/avahi-daemon start } +flukso_stop() { + [ -s /var/run/fluksod/pid ] && { + FLUKSO=1 + /etc/init.d/flukso stop + } +} + +flukso_start() { + [ -n $FLUKSO ] && /etc/init.d/flukso start +} + lock "/var/run/luci-reload" avahi_stop +flukso_stop config_load ucitrack @@ -49,6 +61,7 @@ for i in $*; do config_foreach apply_config $i $i done +flukso_start avahi_start rm -f "/var/run/luci-reload-status" lock -u "/var/run/luci-reload"