[luci] Save and Apply Buttons?

Jo-Philipp Wich xm at subsignal.org
Sat Nov 19 18:22:41 CET 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi.

> If I understand correctly, [Save] pushes the change to /etc/config /*
> and [Save & Apply] does the same plus reboots the router, correct?

It doesn ot reboot the router, it calls corresponding init scripts
defined in /etc/config/ucitrack .

> If my custom page only needs to write to /etc/config/myapp.lua but not
> reboot the router, how do I get ONLY a [Save] button?

Change the cbi() invocation in your controller to something like this:

  cbi("my/form", {autoapply=true})


~ Jow
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk7H5eEACgkQdputYINPTPNn7wCfSYoeZAzzT0ws9Pt9FP0RQdng
fdEAoJpNWsrAhOLkQU2dgqv+Wc9js1U9
=hpl1
-----END PGP SIGNATURE-----


More information about the luci mailing list