diff options
author | Simon Rettberg | 2019-06-18 13:52:10 +0200 |
---|---|---|
committer | Simon Rettberg | 2019-06-18 13:52:10 +0200 |
commit | 6c0437d8dca274e1c8c2b891dcafe478c981dfa5 (patch) | |
tree | d63f70c686a8acd5762fb7365102c8978764e62c /core/modules | |
parent | [hardware-stats] use slx-tools for ID44 (diff) | |
download | mltk-6c0437d8dca274e1c8c2b891dcafe478c981dfa5.tar.gz mltk-6c0437d8dca274e1c8c2b891dcafe478c981dfa5.tar.xz mltk-6c0437d8dca274e1c8c2b891dcafe478c981dfa5.zip |
[hardware-stats] Fix inverted logic for fallback
Diffstat (limited to 'core/modules')
-rwxr-xr-x | core/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats | 2 |
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$') |