summaryrefslogtreecommitdiffstats
path: root/core/modules/hardware-stats
diff options
context:
space:
mode:
authorSimon Rettberg2020-08-27 17:31:44 +0200
committerSimon Rettberg2020-08-27 17:31:44 +0200
commit09b6a8ec2b199bf77d1bbe58d3083c3f4efaddab (patch)
treee7eb3ff1550a2ad3a666e7d506e597407a5ead7b /core/modules/hardware-stats
parent[hardware-stats] fix fix fix fifeef (diff)
downloadmltk-09b6a8ec2b199bf77d1bbe58d3083c3f4efaddab.tar.gz
mltk-09b6a8ec2b199bf77d1bbe58d3083c3f4efaddab.tar.xz
mltk-09b6a8ec2b199bf77d1bbe58d3083c3f4efaddab.zip
[hardware-stats] Work around even harder
Diffstat (limited to 'core/modules/hardware-stats')
-rwxr-xr-xcore/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats2
1 files changed, 1 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 b226e32a..c74860bc 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
@@ -196,7 +196,7 @@ for disk in /dev/disk/by-path/!(*-part*|*-usb-*); do
[ -L "$disk" ] || continue
disk="$( readlink -f "$disk" )"
DISKS+=("$disk")
- slxfdisk -l "$disk" | sed -r 's/\s+[0-9]+,[0-9]+,[0-9]+/ /g' # Work around busybox YET AGAIN changing something in an incompatible way
+ slxfdisk -l "$disk" | sed -r 's/\s+[0-9]+,[0-9]+,[0-9]+/ /g;s/\s[0-9]+\.?[0-9]+[MGT]\s/ /;s/^Units: /Units =foo= /' # Work around busybox YET AGAIN changing something in an incompatible way
done > "$FDISK"
shopt -u extglob
[ -z "$SLX_SMARTCTL_MIN_REALLOC" ] && SLX_SMARTCTL_MIN_REALLOC=0