From 6c0437d8dca274e1c8c2b891dcafe478c981dfa5 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 18 Jun 2019 13:52:10 +0200 Subject: [hardware-stats] Fix inverted logic for fallback --- .../hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (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 8f2ea848..a7afb2d6 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 @@ -159,7 +159,7 @@ if ! slx-tools fs_path_isvolatile "/tmp" ; then ID44_SPACE=($(slx-tools fs_path_space "/tmp")) [ -n "${ID44_SPACE[1]}" ] && ID44="$(( ${ID44_SPACE[1]} / 1024 ))" - if [ "$ID44" -ne 0 ]; then + if [ "$ID44" -eq 0 ]; then # Fallback to old way to detect it # Try df first, make sure device starts with /dev read -r df_dev df_size df_used df_avail df_usepercent df_mountpoint df_crap < <(df -P /tmp | grep ' /tmp$') -- cgit v1.2.3-55-g7522