summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2019-04-04 11:07:07 +0200
committerSimon Rettberg2019-04-04 11:07:16 +0200
commit77d5cc07eec898ec946154ace262834b04ab7f85 (patch)
tree7b4f4fe2bb21e24bdf5b5dafa2a062781e20d75e
parent[hardware-stats] Use proper cmdline switch... (diff)
downloadmltk-77d5cc07eec898ec946154ace262834b04ab7f85.tar.gz
mltk-77d5cc07eec898ec946154ace262834b04ab7f85.tar.xz
mltk-77d5cc07eec898ec946154ace262834b04ab7f85.zip
[hardware-stats] Fix smartctl part
When refactoring how the harddisks are enumerated, an old line stripping of a colon at the end of the line was accidentally left there.
-rwxr-xr-xcore/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats1
1 files changed, 0 insertions, 1 deletions
diff --git a/core/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats b/core/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats
index 3d6b6539..b93b2edb 100755
--- a/core/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats
+++ b/core/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats
@@ -193,7 +193,6 @@ if which smartctl; then
FILE=$(mktemp)
[ -z "$FILE" ] && FILE="/tmp/smartctl.$$.$RANDOM.$RANDOM"
for dev in "${DISKS[@]}"; do
- dev=${dev:0:-1}
smartctl -i -H -A -f "brief" "$dev" > "$FILE"
# Exit code might be nonzero to indicate fail status, or because some (but not all) ATA commands
# failed. So instead, see if we at least got basic device information and go on if so.