lisaac / luci-app-diskman

Disk Manager for LuCI
GNU Affero General Public License v3.0
400 stars 112 forks source link

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

Open jim-sang opened 10 months ago

jim-sang commented 10 months ago

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

muink commented 10 months ago

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

sunowsir commented 2 months ago

同样现象,系统日志显示: 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 commented 3 weeks ago

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