Skip to content

LuCI for Entware - #1

Draft
Ponywka wants to merge 31 commits into
masterfrom
feature/luci
Draft

Ponywka wants to merge 31 commits into
masterfrom
feature/luci

Conversation

@Ponywka

@Ponywka Ponywka commented Sep 11, 2026

Copy link
Copy Markdown
Member

No description provided.

Comment thread applications/luci-app-package-manager/root/libexec/package-manager-call Outdated
Comment thread applications/luci-app-package-manager/root/libexec/package-manager-call Outdated
@@ -0,0 +1,5 @@
config system
option hostname 'Entware'

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Точно ли оставить название как "hostname"? Технически в парадигме Entware это не имеет никакого отношения к hostname'у.

Comment thread modules/luci-base/root/etc/uci-config/system Outdated
Comment thread modules/luci-base/ucode/sys.uc Outdated
Comment thread themes/luci-theme-material/htdocs/luci-static/material/logo.svg
Comment thread luci.mk
Comment thread themes/luci-theme-footstrap/htdocs/luci-static/footstrap/logo.svg
Comment thread themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/logo.svg
@Ponywka
Ponywka marked this pull request as draft September 11, 2026 02:13
@Ponywka

Ponywka commented Sep 12, 2026

Copy link
Copy Markdown
Member Author

Есть небольшой момент, который нужно учитывать при использовании LuCI - нужно запускать/перезапускать его в строгой последовательности:

/opt/etc/init.d/rc.unslung stop
/opt/etc/init.d/rc.unslung start

Надо бы придумать, как исправить

Comment thread modules/luci-mod-system/htdocs/luci-static/resources/view/system/password.js Outdated
@Ponywka
Ponywka force-pushed the feature/luci branch 2 times, most recently from a94da47 to d5c42e3 Compare September 14, 2026 22:57
Ponywka and others added 8 commits September 16, 2026 01:19
…ays available on vendor firmware

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
check_oldpwd() compared the entered password's hash against the stored
rpcd login password by literal string equality, which can never match
rpcd's "$p$<user>" shadow-indirection marker -- the default state of
every login entry -- so the option was hidden entirely.

Resolve that indirection the same way rpcd's own session.c does (read
/opt/etc/shadow or /opt/etc/passwd), verify locally via uhttpd -m's new
optional hash argument, and try each matching login section in order
like rpc_login_test_login() does.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
network.interface/dump is a netifd ubus object that doesn't exist on
Entware, so the unwrapped call rejected and crashed the whole page via
Promise.all. Wrap it in L.resolveDefault() like the other calls in the
same load(), degrading to raw device names instead of interface badges.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Ponywka and others added 2 commits September 16, 2026 03:25
busybox dmesg -r omits the [timestamp] prefix entirely when the
running kernel has CONFIG_PRINTK_TIME disabled. The default time
filter (logFilterFrom: '0') is a non-empty string and thus always
truthy, so every line ended up with a null time and got dropped,
leaving the page empty on such routers.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Move root/usr/share/* to root/share/* (no usr/ segment under /opt on
Entware), point UCI config/uci-defaults at /opt/etc/uci-config instead
of /etc/config, fix the ucode plugin shebang, and update every doc/
comment/.po source-location reference accordingly. Verified live:
package builds, installs, and both the form and RPC views render
correctly against a real Entware instance.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Comment thread luci.mk
Comment on lines +117 to +118
# SRCDIET needs lua/host (dropped, no-Lua fork); CSSTIDY's host package exists but isn't wired back in; JSMIN needs no deps, off just to match.
PKG_BUILD_DEPENDS += luci-base/host $(LUCI_BUILD_DEPENDS)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Попробовать в следующей итерации починить сжатие CSS/JS

Comment thread modules/luci-mod-system/root/share/luci/menu.d/luci-mod-system.json Outdated
Comment thread modules/luci-mod-system/root/share/luci/menu.d/luci-mod-system.json Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant