diff options
author | Jonathan Bauer | 2019-10-16 11:21:39 +0200 |
---|---|---|
committer | Jonathan Bauer | 2019-10-16 11:21:39 +0200 |
commit | 62ec4a2c1b3a19548574f7c1854bff24d5b2a8ca (patch) | |
tree | ebb2793b2121fa5c728561b21c93c5ccef5b0680 /core/modules/hardware-stats/data/opt/openslx/scripts | |
parent | [vbox-src] properly set the attached disk uuid (diff) | |
download | mltk-62ec4a2c1b3a19548574f7c1854bff24d5b2a8ca.tar.gz mltk-62ec4a2c1b3a19548574f7c1854bff24d5b2a8ca.tar.xz mltk-62ec4a2c1b3a19548574f7c1854bff24d5b2a8ca.zip |
[hardware-stats] id44 check for /tmp/virt not /tmp
Diffstat (limited to 'core/modules/hardware-stats/data/opt/openslx/scripts')
-rwxr-xr-x | core/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats | 8 |
1 files changed, 4 insertions, 4 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 a7afb2d6..694c0707 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 @@ -155,14 +155,14 @@ echo "$VIRTTYPE is $VT" # 8) ID44 partition size ID44=0 -if ! slx-tools fs_path_isvolatile "/tmp" ; then - ID44_SPACE=($(slx-tools fs_path_space "/tmp")) +if ! slx-tools fs_path_isvolatile "/tmp/virt" ; then + ID44_SPACE=($(slx-tools fs_path_space "/tmp/virt")) [ -n "${ID44_SPACE[1]}" ] && ID44="$(( ${ID44_SPACE[1]} / 1024 ))" 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$') + read -r df_dev df_size df_used df_avail df_usepercent df_mountpoint df_crap < <(df -P /tmp/virt | grep ' /tmp/virt$') if [ -n "${df_size}" ] && [ "${df_dev:0:5}" = "/dev/" ]; then # df reports kbytes, convert to MB ID44=$(( df_size / 1024 )) @@ -179,7 +179,7 @@ if ! slx-tools fs_path_isvolatile "/tmp" ; then fi fi fi -echo "Temp partition: $ID44 MB" +echo "Scratch space: $ID44 MB" # 9) check smart values FDISK=$(mktemp) |