diff options
author | Simon Rettberg | 2018-04-13 10:38:11 +0200 |
---|---|---|
committer | Simon Rettberg | 2018-04-13 10:38:11 +0200 |
commit | 63dd477bfbdd048cc284076f201952ecb08d5f50 (patch) | |
tree | 5638f016705f2d816d5a6d7ba3d9ccc56f297dc0 /core/modules/hardware-stats | |
parent | [debug-report-bwlp] fdisk output in sectors (diff) | |
download | mltk-63dd477bfbdd048cc284076f201952ecb08d5f50.tar.gz mltk-63dd477bfbdd048cc284076f201952ecb08d5f50.tar.xz mltk-63dd477bfbdd048cc284076f201952ecb08d5f50.zip |
[hardware-stats] fdisk output in sectors
Diffstat (limited to 'core/modules/hardware-stats')
-rwxr-xr-x | core/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats | 4 |
1 files changed, 2 insertions, 2 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 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 |