[luci] howto disable menuitems
Jo-Philipp Wich
xm at subsignal.org
Mon Apr 26 16:21:10 CEST 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi.
> I build a custom OpenWRT image with luci as web interface. Now I need to
> remove/hide/disable some menu items. For example the
> Administration->System->Software menu should not be visible.
Hmm, there is no way to do that without editing the source.
You can find the LuCI source code at
http://svn.luci.subsignal.org/luci/branches/luci-0.9
To create a custom admin module, copy modules/admin-full to for example
luci-admin-custom. The menu definitions are in the
modules/admin-full/luasrc/controller/*/*.lua files.
To make the new admin module available in menuconfig / for building, you
have to edit contrib/package/luci/Makefile and add definitions for the
custom admin module there - just copy the definitions from admin-full.
~ Jow
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkvVoVYACgkQdputYINPTPPDOgCcDMrXgSdBnRyM3Wn8Ty0NkYaU
NwcAn1w6yWbn9B4OTiSS/ryu3z0sOumK
=4YqC
-----END PGP SIGNATURE-----
More information about the luci
mailing list