OpenWrt Forum Archive

Topic: getting luci source codes from the system

The content of this topic has been archived on 1 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi guys, I am a newbie on here ( and this is my first post smile ).

My question, I was given a router that running on openwrt, can I actually get the luci codes that are on the system?
wanted to edit it, and flash it back to the system..what are the steps to do it?

thanks guys.

Find code you need, than use vi editor. For example:

 vi /usr/lib/lua/luci/model/network.lua 

(Last edited by rusink on 1 Mar 2013, 06:00)

Thanks rusink. Indeed, I have been doing that. But I want to edit on Eclipse which is more interactive should I say. and I want to add some lua files too..

All Luci sources are in:
http://luci.subsignal.org/trac/timeline

Trunk: http://luci.subsignal.org/trac/browser/luci/trunk
Attitude Adjustment: http://luci.subsignal.org/trac/browser/ … /luci-0.11

You can download it to your local build environment, and then change the feed definition to point into your local sources, so that the compiled firmware will contain your sources. I have done that.

--- trunk/feeds.conf.default    (revision 35836)
+++ trunk/feeds.conf.default    (working copy)
@@ -1,6 +1,5 @@
 src-svn packages svn://svn.openwrt.org/openwrt/packages
-src-svn xwrt http://x-wrt.googlecode.com/svn/trunk/package
-src-svn luci http://svn.luci.subsignal.org/luci/trunk/contrib/package
+src-link luci /Openwrt/luci/trunk/contrib/package
 #src-svn phone svn://svn.openwrt.org/openwrt/feeds/phone
 #src-svn efl svn://svn.openwrt.org/openwrt/feeds/efl
 #src-svn xorg svn://svn.openwrt.org/openwrt/feeds/xorg

The build system is so clever, that it will check if you have local full sources, if yes then it uses those, otherwise it downloads a source snapshot from server.
(The feed definition needs in any case point into contrib/package directory inside the sources)

(Last edited by hnyman on 1 Mar 2013, 08:06)

The discussion might have continued from here.