diff options
author | Simon Rettberg | 2020-08-27 16:41:25 +0200 |
---|---|---|
committer | Simon Rettberg | 2020-08-27 16:41:25 +0200 |
commit | 74af561ca3aa113f0ba9aabbf869073955fce23d (patch) | |
tree | 1fe3fa394f6da53088f0451824805d39190f005e | |
parent | [etherwake] Fix etherwake symlink, disable pause frames (diff) | |
download | mltk-74af561ca3aa113f0ba9aabbf869073955fce23d.tar.gz mltk-74af561ca3aa113f0ba9aabbf869073955fce23d.tar.xz mltk-74af561ca3aa113f0ba9aabbf869073955fce23d.zip |
[hardware-stats] Work around more busybox changes
fdisk output changed. sed it into form for now.
-rwxr-xr-x | core/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats | 2 |
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 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 |