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

branch 23.05 diskman 不显示 #443

Open
sunowsir opened this issue Sep 10, 2024 · 0 comments
Open

branch 23.05 diskman 不显示 #443

sunowsir opened this issue Sep 10, 2024 · 0 comments

Comments

@sunowsir
Copy link

sunowsir commented Sep 10, 2024

已确保安装luci-app-diskman包,且使用make defconfig检查过

  1. go to: 系统 → 无磁盘管理

解决办法:

  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"

固件信息:

DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='23.05.0'
DISTRIB_REVISION='r27979-53e4ddfa7c'
DISTRIB_TARGET='x86/64'
DISTRIB_ARCH='x86_64'
DISTRIB_DESCRIPTION='OpenWrt 23.05 r27979-53e4ddfa7c'
DISTRIB_TAINTS=''

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

1 participant