mirror of
https://github.com/gSpotx2f/luci-app-disks-info.git
synced 2025-01-07 03:07:11 +08:00
v0.4. NVMe support
This commit is contained in:
parent
d3bd0ea654
commit
963b2f6bef
2
Makefile
2
Makefile
@ -6,7 +6,7 @@
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_VERSION:=0.3-9
|
||||
PKG_VERSION:=0.4-0
|
||||
LUCI_TITLE:=Information about connected disk devices (partitions, filesystems, SMART).
|
||||
LUCI_DEPENDS:=+fdisk +smartmontools +smartmontools-drivedb
|
||||
LUCI_PKGARCH:=all
|
||||
|
12
README.md
12
README.md
@ -9,16 +9,16 @@ Dependences: fdisk, smartmontools, smartmontools-drivedb.
|
||||
|
||||
**OpenWrt >= 21.02:**
|
||||
|
||||
wget --no-check-certificate -O /tmp/luci-app-disks-info_0.3-9_all.ipk https://github.com/gSpotx2f/packages-openwrt/raw/master/current/luci-app-disks-info_0.3-9_all.ipk
|
||||
opkg install /tmp/luci-app-disks-info_0.3-9_all.ipk
|
||||
rm /tmp/luci-app-disks-info_0.3-9_all.ipk
|
||||
wget --no-check-certificate -O /tmp/luci-app-disks-info_0.4-0_all.ipk https://github.com/gSpotx2f/packages-openwrt/raw/master/current/luci-app-disks-info_0.4-0_all.ipk
|
||||
opkg install /tmp/luci-app-disks-info_0.4-0_all.ipk
|
||||
rm /tmp/luci-app-disks-info_0.4-0_all.ipk
|
||||
/etc/init.d/rpcd restart
|
||||
|
||||
i18n-ru:
|
||||
|
||||
wget --no-check-certificate -O /tmp/luci-i18n-disks-info-ru_0.3-9_all.ipk https://github.com/gSpotx2f/packages-openwrt/raw/master/current/luci-i18n-disks-info-ru_0.3-9_all.ipk
|
||||
opkg install /tmp/luci-i18n-disks-info-ru_0.3-9_all.ipk
|
||||
rm /tmp/luci-i18n-disks-info-ru_0.3-9_all.ipk
|
||||
wget --no-check-certificate -O /tmp/luci-i18n-disks-info-ru_0.4-0_all.ipk https://github.com/gSpotx2f/packages-openwrt/raw/master/current/luci-i18n-disks-info-ru_0.4-0_all.ipk
|
||||
opkg install /tmp/luci-i18n-disks-info-ru_0.4-0_all.ipk
|
||||
rm /tmp/luci-i18n-disks-info-ru_0.4-0_all.ipk
|
||||
|
||||
**OpenWrt 19.07:**
|
||||
|
||||
|
@ -55,7 +55,7 @@ return view.extend({
|
||||
|
||||
smartTempAttrs : [ 190, 194 ],
|
||||
|
||||
deviceRegExp : new RegExp('^(h|s)d[a-z]$'),
|
||||
deviceRegExp : new RegExp('^((h|s)d[a-z]|nvme[0-9]+n[0-9]+)$'),
|
||||
|
||||
getDeviceData: function(device) {
|
||||
return Promise.all([
|
||||
|
@ -5,10 +5,10 @@
|
||||
"cgi-io": [ "exec" ],
|
||||
"file": {
|
||||
"/dev": [ "list" ],
|
||||
"/bin/df -Th /dev/?d?[0-9]*": [ "exec" ],
|
||||
"/usr/sbin/fdisk -l /dev/?d?": [ "exec" ],
|
||||
"/usr/sbin/smartctl -iAHl scttemp -l error -l devstat --json=c /dev/?d?": [ "exec" ],
|
||||
"/usr/sbin/smartctl -l scttempint,[0-9,p]* /dev/?d?": [ "exec" ]
|
||||
"/bin/df -Th /dev/*": [ "exec" ],
|
||||
"/usr/sbin/fdisk -l /dev/*": [ "exec" ],
|
||||
"/usr/sbin/smartctl -iAHl scttemp -l error -l devstat --json=c /dev/*": [ "exec" ],
|
||||
"/usr/sbin/smartctl -l scttempint,[0-9,p]* /dev/*": [ "exec" ]
|
||||
},
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user