Skip to content
Contents
GuidesOpenWrt

Where are LuCI page files in OpenWrt 25.12? Trace a view to its package

Finding /www/cgi-bin/luci gets you to the request handler. To find the code that displays uptime, start with the file your browser loads and ask apk which package installed it.

Finding /www/cgi-bin/luci gets you to the request handler. To find the code that displays uptime, start with the file your browser loads and ask apk which package installed it.

Find Uptime in the browser

Open Status → Overview. Note the firmware and LuCI versions. Open Network in the browser developer tools, reload and filter for 10_system.js. The screenshot locates Uptime in an isolated OpenWrt 25.12.6 x86/64 guest. Set an administrator password on your own router.

LuCI · Status → Overview · Uptime

The request below was recorded in that guest. If it is missing, clear the filter, reload and follow the actual view. Over SSH, check release.revision with ubus call system board. For the default web root, prefix the request path with /www. Adjust it for a custom uHTTPd root.

/luci-static/resources/view/status/include/10_system.js

ls -ld /www/cgi-bin/luci /www/luci-static/resources/view /usr/share/luci/menu.d
ls /www/luci-static/resources/view/status/include/10_system.js
apk info --who-owns /www/luci-static/resources/view/status/include/10_system.js

SSH · apk info --who-owns

The menu definitions live in /usr/share/luci/menu.d. The last command identifies the owner of this particular view. Other apps may use a different layout.

luci-mod-status-26.288.56989~75a306d

Match the installed version to the source

On the development machine, open the matching LuCI revision. In this example use 75a306df and search the following file for Uptime and systeminfo.uptime. Packaged JavaScript may be minified.

modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/10_system.js

You should now be able to match the request, package version and expression that supplies the value. If apk finds no owner, check for local or vendor files. Keep the original image and test edits in a separate build. If the duration itself looks wrong, compare the readings below.

LuCI shows less uptime than SSH: did OpenWrt restart?

Explore hardware

Comments