From 63dd477bfbdd048cc284076f201952ecb08d5f50 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 13 Apr 2018 10:38:11 +0200 Subject: [hardware-stats] fdisk output in sectors --- .../hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/modules') 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 af475741..eccb4bb5 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 @@ -51,11 +51,11 @@ cleanup() { slxfdisk() { local binary RET - for binary in "/opt/openslx/sbin/fdisk" "busybox fdisk" "fdisk"; do + for binary in "/opt/openslx/sbin/fdisk -u" "busybox fdisk -u" "fdisk"; do $binary "$@" RET=$? [ "$RET" = "127" ] && continue # command not found - [ "$RET" = "1" ] && [ "$binary" = "busybox fdisk" ] && continue # maybe applet not found + [ "$RET" = "1" ] && [ "${binary%% *}" = "busybox" ] && continue # maybe applet not found return $RET done return 127 -- cgit v1.2.3-55-g7522