恩山无线论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 170|回复: 1

不知luci-app-diskman的作者老哥有无上论坛,上的话来看看,不上的话有认识的朋友通知

[复制链接]
发表于 2022-8-1 09:59 | 显示全部楼层 |阅读模式
本帖最后由 wulishui 于 2022-8-1 10:08 编辑

我github密码忘记了,没法去提意见。
附上我的x86固件:https://www.right.com.cn/FORUM/forum.php?mod=viewthread&tid=928319&page=1&extra=#pid4557346
diskman有些地方是不对的,其一是makefile,依赖无法自动关联,所以即使编译好也缺乏依赖,没法使用,改为这样就对了(主要是------部分)
  1. #--------------------------------------------------------------------------
  2. include $(TOPDIR)/rules.mk

  3. PKG_NAME:=luci-app-diskman
  4. PKG_VERSION:=v0.2.11
  5. PKG_RELEASE:=beta

  6. PKG_LICENSE:=GPL-3.0-only
  7. PKG_MAINTAINER:=lisaac <https://github.com/lisaac/luci-app-diskman>

  8. PKG_CONFIG_DEPENDS:= \
  9.         CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_btrfs_progs \
  10.         CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_lsblk \
  11.         CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_mdadm \
  12.         CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_kmod_md_raid456 \
  13.         CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_kmod_md_linears

  14. LUCI_TITLE:=Disk Manager interface for LuCI
  15. LUCI_DEPENDS:=+e2fsprogs +parted +smartmontools +blkid \
  16.         +PACKAGE_$(PKG_NAME)_INCLUDE_btrfs_progs:btrfs-progs \
  17.         +PACKAGE_$(PKG_NAME)_INCLUDE_lsblk:lsblk \
  18.         +PACKAGE_$(PKG_NAME)_INCLUDE_mdadm:mdadm \
  19.         +PACKAGE_$(PKG_NAME)_INCLUDE_kmod_md_raid456:mdadm \
  20.         +PACKAGE_$(PKG_NAME)_INCLUDE_kmod_md_raid456:kmod-md-raid456 \
  21.         +PACKAGE_$(PKG_NAME)_INCLUDE_kmod_md_linears:mdadm \
  22.         +PACKAGE_$(PKG_NAME)_INCLUDE_kmod_md_linears:kmod-md-linear
  23. LUCI_PKGARCH:=all
  24. #--------------------------------------------------------------------------

  25. define Package/$(PKG_NAME)/postinst
  26. #!/bin/sh
  27. rm -fr /tmp/luci-indexcache /tmp/luci-modulecache
  28. endef

  29. define Package/$(PKG_NAME)/config
  30. config PACKAGE_$(PKG_NAME)_INCLUDE_btrfs_progs
  31.         depends on PACKAGE_$(PKG_NAME)
  32.         bool "Include btrfs-progs"
  33.         default y
  34. config PACKAGE_$(PKG_NAME)_INCLUDE_lsblk
  35.         depends on PACKAGE_$(PKG_NAME)
  36.         bool "Include lsblk"
  37.         default y
  38. config PACKAGE_$(PKG_NAME)_INCLUDE_mdadm
  39.         depends on PACKAGE_$(PKG_NAME)
  40.         bool "Include mdadm"
  41.         default y
  42. config PACKAGE_$(PKG_NAME)_INCLUDE_kmod_md_raid456
  43.         depends on PACKAGE_$(PKG_NAME)_INCLUDE_mdadm
  44.         bool "Include kmod-md-raid456"
  45.         default y
  46. config PACKAGE_$(PKG_NAME)_INCLUDE_kmod_md_linear
  47.         depends on PACKAGE_$(PKG_NAME)_INCLUDE_mdadm
  48.         bool "Include kmod-md-linear"
  49.         default y
  50. endef

  51. include $(TOPDIR)/feeds/luci/luci.mk

  52. # call BuildPackage - OpenWrt buildroot signature
复制代码

其二,创建exfat、fat32的命令是错的,其中exfat最为严重,会引起系统卡死,绝不能使用-f参数。ntfs的最好也改一下:
  1. sed -i 's/cmd = "mkexfat", option = "-f"/cmd = "mkfs.exfat", option = ""/g' /usr/lib/lua/luci/model/diskman.lua
  2. sed -i 's/cmd = "mkfs.vfat", option = "-F"/cmd = "mkfs.vfat", option = "-F 32"/g' /usr/lib/lua/luci/model/diskman.lua
  3. sed -i 's/cmd = "mkntfs", option = "-f"/cmd = "mkfs.ntfs", option = "-f"/g' /usr/lib/lua/luci/model/diskman.lua
复制代码
我的恩山、我的无线 The best wifi forum is right here.
发表于 2022-8-1 10:19 | 显示全部楼层
感谢作者,您辛苦了
我的恩山、我的无线 The best wifi forum is right here.
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )|网站地图

GMT+8, 2022-8-18 22:47

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

| 江苏省互联网有害信息举报中心 举报信箱:js12377@jschina.com.cn 举报电话:025-88802724 | 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797
快速回复 返回顶部 返回列表