diff options
author | Simon Rettberg | 2019-02-19 16:07:50 +0100 |
---|---|---|
committer | Simon Rettberg | 2019-02-19 16:07:50 +0100 |
commit | 02c169ec29d359a1cb4caedde67dbb6a85784a52 (patch) | |
tree | 7ae73ca570577c71b09b5612509d392b74792f17 /core/modules/hardware-stats/data | |
parent | [hardware-stats/rootfs-stage32] Improve HDD detection (diff) | |
download | mltk-02c169ec29d359a1cb4caedde67dbb6a85784a52.tar.gz mltk-02c169ec29d359a1cb4caedde67dbb6a85784a52.tar.xz mltk-02c169ec29d359a1cb4caedde67dbb6a85784a52.zip |
[hardware-stats/rootfs-stage32] HI JOEY!
Diffstat (limited to 'core/modules/hardware-stats/data')
-rwxr-xr-x | core/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats | 2 |
1 files changed, 2 insertions, 0 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 02eabb41..f2076bb3 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 @@ -179,12 +179,14 @@ echo "Temp partition: $ID44 MB" # 9) check smart values FDISK=$(mktemp) declare -a DISKS +shopt -s extglob for disk in /dev/disk/by-path/!(*-part*); do [ -L "$disk" ] || continue disk="$( readlink -f "$disk" )" DISKS+=("$disk") slxfdisk -l "$disk" done > "$FDISK" +shopt -u extglob BADSECTORS=0 if which smartctl; then ALLSMART=$(mktemp) |