[luci] [PATCH] Prevent multiple instances of luci-apps in ucitrack
Lars Hardy
lars.hardy at gmail.com
Fri Oct 15 15:48:26 CEST 2010
When updating the firmware from LuCI and keep the configuration
files, both luci09 and Trunk adds a new entry in the
"/etc/config/ucitrack". (for those luci-applications that use ucitrack)
So when upgrading the firmware several times my /etc/config/ucitrac
looked like this:
config 'ushare'
option 'init' 'ushare'
config 'freifunk_p2pblock'
option 'init' 'freifunk-p2pblock'
config 'p910nd'
option 'init' 'p910nd'
config 'ushare'
option 'init' 'ushare'
config 'freifunk_p2pblock'
option 'init' 'freifunk-p2pblock'
config 'p910nd'
option 'init' 'p910nd'
config 'ushare'
option 'init' 'ushare'
config 'freifunk_p2pblock'
option 'init' 'freifunk-p2pblock'
config 'p910nd'
option 'init' 'p910nd'
config 'ushare'
option 'init' 'ushare'
config 'freifunk_p2pblock'
option 'init' 'freifunk-p2pblock'
config 'p910nd'
option 'init' 'p910nd'
config 'ushare'
option 'init' 'ushare'
This leads to multiple starts/processes of each app.
Attached a patch that applies to both luci-09 and Trunk.
I don't know if this is the right way to fix it, I just borrowed the
code from luci-statistics app that does not do this.
Regards Lars
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: luci-apps-ucitrack-commit-handler.patch
Url: http://lists.subsignal.org/pipermail/luci/attachments/20101015/de70b66f/attachment.ksh
More information about the luci
mailing list