[luci] command execute twice when click a button
edwin.voip
edwin.voip at gmail.com
Thu Dec 29 07:36:06 CET 2011
Hi,
I try to add a button on luci, like below:
scan = s:option(Button, "_scan", "scan")
scan.inputstyle = "find"
function scan.write(self, section)
luci.sys.exec("echo test >> /root/lucitest")
end
when I click this button, it will add two line of test string in lucitest.
Did anyone see the same problem before?
Cheers,
Edwin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsignal.org/pipermail/luci/attachments/20111229/0ac3b77e/attachment.html>
More information about the luci
mailing list