summaryrefslogtreecommitdiffstats
path: root/core/modules/hardware-stats
diff options
context:
space:
mode:
authorSimon Rettberg2019-06-18 13:52:10 +0200
committerSimon Rettberg2019-06-18 13:52:10 +0200
commit6c0437d8dca274e1c8c2b891dcafe478c981dfa5 (patch)
treed63f70c686a8acd5762fb7365102c8978764e62c /core/modules/hardware-stats
parent[hardware-stats] use slx-tools for ID44 (diff)
downloadmltk-6c0437d8dca274e1c8c2b891dcafe478c981dfa5.tar.gz
mltk-6c0437d8dca274e1c8c2b891dcafe478c981dfa5.tar.xz
mltk-6c0437d8dca274e1c8c2b891dcafe478c981dfa5.zip
[hardware-stats] Fix inverted logic for fallback
Diffstat (limited to 'core/modules/hardware-stats')
-rwxr-xr-xcore/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats2
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 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$')