diff options
| author | Simon Rettberg | 2015-12-10 17:25:29 +0100 |
|---|---|---|
| committer | Simon Rettberg | 2015-12-10 17:25:29 +0100 |
| commit | dce555f3528b9170cb55f14f779034e05886039b (patch) | |
| tree | b98c30ec1cde891e0cc57196f7e8d595d0a2a2fe | |
| parent | [hardware-stats] Disable logging and stats if server doesn't support it (diff) | |
| download | tm-scripts-dce555f3528b9170cb55f14f779034e05886039b.tar.gz tm-scripts-dce555f3528b9170cb55f14f779034e05886039b.tar.xz tm-scripts-dce555f3528b9170cb55f14f779034e05886039b.zip | |
[hardware-stats] Fix fdisk grep expression for id44 partiton
| -rwxr-xr-x | remote/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/remote/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats b/remote/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats index 890df9c8..2d0a30c7 100755 --- a/remote/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats +++ b/remote/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats @@ -89,7 +89,7 @@ fi # 8) ID44 partition size ID44=0 -for c in $(fdisk -l | grep -E '[0-9]+\s+44\s+' | awk '{print $1}'); do +for c in $(fdisk -l | grep -E '[0-9]+[\-\+]?\s+44\s+' | awk '{print $1}'); do val=$(blockdev --getsize64 "$c") [ -z "$val" ] && continue [ "$val" -gt "$ID44" ] && ID44=$val |
