mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
sysutils/smart: to be honest, if the kernel says it's a disk...
... don't ask diskinfo to let it ask the kernel if the disk exists. ;)
This commit is contained in:
@@ -28,10 +28,6 @@
|
||||
RESULT=
|
||||
|
||||
for DEV in $(sysctl -n kern.disks); do
|
||||
if ! /usr/sbin/diskinfo ${DEV} >/dev/null 2>&1; then
|
||||
continue;
|
||||
fi
|
||||
|
||||
STATE=$(/usr/local/sbin/smartctl -jH /dev/${DEV})
|
||||
IDENT=$(/usr/sbin/diskinfo -s ${DEV})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user