From 74af561ca3aa113f0ba9aabbf869073955fce23d Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 27 Aug 2020 16:41:25 +0200 Subject: [hardware-stats] Work around more busybox changes fdisk output changed. sed it into form for now. --- .../hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/modules/hardware-stats') 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 9a226d51..9de35095 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 @@ -54,7 +54,7 @@ cleanup() { slxfdisk() { local binary RET for binary in "/opt/openslx/sbin/fdisk -u" "busybox fdisk -u" "fdisk"; do - $binary "$@" + $binary "$@" | sed -r 's/\s+[0-9]+,[0-9]+,[0-9]+\s+/ /g' # Work around busybox YET AGAIN changing something in an incompatible way RET=$? [ "$RET" = "127" ] && continue # command not found [ "$RET" = "1" ] && [ "${binary%% *}" = "busybox" ] && continue # maybe applet not found -- cgit v1.2.3-55-g7522