--- /dev/null
+#!/bin/bash -noprofile
+
+####################################################################################
+# File : diskSpace.sh
+# Created : Mon Jun 25 17:09:00 2007
+# Author : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com)
+# Project : SALOME
+# Module : Installation Wizard
+# Copyright : 2002-2007 CEA
+#
+# This script is the part of the SALOME installation procedure.
+#
+# The script returns available disk space.
+#
+# Usage: diskSpace <directory>
+#
+####################################################################################
+
+if [ $# -lt 1 ] ; then
+ echo "`basename $0` : wrong parameters"
+ exit 1
+fi
+var=`df -k "$1" | awk '{print $4}'`
+for i in $var; do var=$i; done
+echo $var
+exit 0