diff options
Diffstat (limited to 'core/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats')
-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) |