v0.4. NVMe support

This commit is contained in:
gSpot 2022-07-27 19:57:56 +03:00
parent d3bd0ea654
commit 963b2f6bef
4 changed files with 12 additions and 12 deletions

View File

@ -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

View File

@ -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:**

View File

@ -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([

View File

@ -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" ]
},
}
}