Questions tagged [luci]

LuCI (a WebUI for OpenWrt)

LuCI was founded in March 2008 as "FFLuCI" as part of the efforts to create a port of the Freifunk-Firmware from OpenWrt? Whiterussian to Kamikaze.

The initial reason for this project was the absence of a free, clean, extensible and easily maintainable web user interface for embedded devices. While most similar configuration interfaces make heavy use of the Shell-scripting language LuCI uses the Lua programming language and splits up the interface into logical parts like models and views, uses object-oriented libraries and templating. That ensures a higher performance, smaller installation size, faster runtimes and what is even more important: better maintainability.

Meanwhile LuCI evolved from a MVC-Webframework to a collection of several libraries, applications and user interfaces with general purpose for Lua programmers while the focus still remains on the web user interface which also became an official part of OpenWrt? Kamikaze.

References :

http://luci.subsignal.org/trac

59 questions
0
votes
0 answers

Cant Access to OpenWrt via LuCI or SSH

I have a TP-Link TL-WR741ND with OpenWrt installed. My IP to access LuCI is 10.0.0.1 I was trying to config a Gateway for an interface and a DHCP server using LuCI but accidentally I set the gateway ip to the same ip to access via LuCI (10.0.0.1). I…
evilpixi
  • 83
  • 8
0
votes
1 answer

Creating LUCI ipk package

I tried to create package of for example luci-app-adblock but got stuck in it. So I made: cd ~/openwrt ./scripts/feeds update -a ./scripts/feeds install -ap luci make oldconfig make -j$1 tools/install make -j$1 toolchain/install make V=s…
0
votes
1 answer

Luci cbi - How to get section name in ListValue

How do I add all name of a section in a ListValue in Luci using CBI? I know how to do this for a list of options. For example if I have the config below. config mysection 'foo' option key1 'abc' option key2 'def' config mysection 'bar' …
Noel
  • 3,749
  • 3
  • 22
  • 21
0
votes
1 answer

How do you restart a service after you submit an openwrt page?

I'm trying to write a page in openwrt that changes the configuration of an application I wrote and then restarts a service. For now, I'm using a simple "service" that writes to a log to see that once I click "save and apply" on the page, it writes…
user2850818
  • 345
  • 1
  • 3
  • 17
0
votes
1 answer

String pattern for checking the first 8 characters are same in luci

I am using Luci-Lua in openWRT. I need a function to validate the password field that only accepts alphanumeric and the first 8 characters are not same. Please check my code and help me. function pw1.validate(self, value) if #value <= 6 and not…
0
votes
1 answer

How can i write condition for executing shell command in lua when an option selected from dropdown

I am new to openWrt. I have a selectbox with two options. How can I write condition in Lua to execute some commands when selecting these options.