[luci] add download button

Le Tran Dat trandatnh at gmail.com
Tue Dec 3 01:54:54 CET 2013


Try this.

> btn = s:option(Button, "_btn", translate("Click this to run a script"))
> function btn.write()
> luci.sys.call("/usr/bin/script.sh")
> end


http://home.martin.cc/OpenWrt/luci#!



On Mon, Dec 2, 2013 at 9:57 PM, Igor <igor.iptv at gmail.com> wrote:

> How to add button in luci and click on this button to download
> /etc/config/net
> work file.
>
> _______________________________________________
> luci mailing list
> luci at lists.subsignal.org
> https://lists.subsignal.org/mailman/listinfo/luci
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsignal.org/pipermail/luci/attachments/20131203/0d6599de/attachment.html>


More information about the luci mailing list