Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

安装后没有显示菜单入口,软件不能使用 #75

Open
jim-sang opened this issue Dec 16, 2023 · 3 comments
Open

安装后没有显示菜单入口,软件不能使用 #75

jim-sang opened this issue Dec 16, 2023 · 3 comments

Comments

@jim-sang
Copy link

日志中有一条
Lua controller /usr/lib/lua/luci/controller/diskman.lua present but no Lua runtime installed.

@muink
Copy link
Contributor

muink commented Dec 16, 2023

Try opkg update && opkg install --forcereinstall luci-lua-runtime luci-compat luci-lib-ipkg

@sunowsir
Copy link

sunowsir commented Sep 4, 2024

同样现象,系统日志显示: daemon.err uhttpd[2731]: /usr/bin/which: no parted in ((null))
固件版本:ImmortalWrt 23.05-SNAPSHOT r27969-06571d1ba3 / LuCI openwrt-23.05 branch git-24.235.27184-1c56822
平台: X86_64
解决办法

  1. 编辑 /usr/lib/lua/luci/controller/diskman.lua, 修改约17行,local command = luci.sys.exec("/usr/bin/which" .. cmd) 为 local command = luci.sys.exec("export PATH=$PATH:/sbin:/usr/sbin && /usr/bin/which" .. cmd)
  2. 编辑/usr/lib/lua/luci/model/diskman.lua, 在约19行下面增加:d.command.df = nixio.fs.access("/usr/bin/df") and "/usr/bin/df" or "/bin/df"

@yunhaivip
Copy link

同样问题,arm平台,以上方法都没有用,原创大神不修复一下吗

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

No branches or pull requests

4 participants