summaryrefslogtreecommitdiffstats
path: root/core/modules/hardware-stats
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/hardware-stats')
-rwxr-xr-xcore/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats4
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