summaryrefslogtreecommitdiff
path: root/tests/diskfree
diff options
context:
space:
mode:
Diffstat (limited to 'tests/diskfree')
-rwxr-xr-xtests/diskfree8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/diskfree b/tests/diskfree
new file mode 100755
index 0000000..d6d29b5
--- /dev/null
+++ b/tests/diskfree
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+if [ "x$1" = "x" ]; then
+ echo expected partition as first argument
+ exit 1
+fi
+
+df -P $1 | tail -n1 | awk '{ print $4 * 1024 }'