check partition

This commit is contained in:
Cédric Verstraeten
2017-08-02 11:12:49 +02:00
parent 050b32f3d1
commit 6ce9ebdc1f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -142,7 +142,7 @@ Create a bash script and copy following script.
Copy following script (make sure the partition is correct, this is the default one for a Raspberry Pi).
partition=/dev/mmcblk0p1
partition=/dev/root
imagedir=/etc/opt/kerberosio/capture/
if [[ $(df -h | grep $partition | head -1 | awk -F' ' '{ print $5/1 }' | tr ['%'] ["0"]) -gt 90 ]];
then
+1 -1
View File
@@ -134,7 +134,7 @@ Create a bash script and copy following script.
Copy following script (make sure the partition is correct, this is the default one for a Raspberry Pi).
partition=/dev/mmcblk0p1
partition=/dev/root
imagedir=/etc/opt/kerberosio/capture/
if [[ $(df -h | grep $partition | head -1 | awk -F' ' '{ print $5/1 }' | tr ['%'] ["0"]) -gt 90 ]];
then