summaryrefslogtreecommitdiff
path: root/scripts/create-image.sh
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-01-30 10:40:05 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2010-01-30 10:40:05 +0100
commitc64105459c5d9662dd8a330f264b60a61ba14c0b (patch)
tree80cbca19a7a31fb3357d8eec3784367075f3b5d3 /scripts/create-image.sh
parent659846437896836e683ba5c0fc393a78eb641c18 (diff)
parent39e9af48da3ef01a9eca53d54ace7545eec39da8 (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'scripts/create-image.sh')
-rwxr-xr-xscripts/create-image.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/create-image.sh b/scripts/create-image.sh
index 4a23b49cf..96a96ced8 100755
--- a/scripts/create-image.sh
+++ b/scripts/create-image.sh
@@ -24,6 +24,16 @@ if [ $(id -u) -ne 0 ];then
exit 1
fi
+printf "Checking if mkfs is installed"
+mkfs=$(which mkfs.$filesystem)
+
+if [ ! -z $mkfs -a -x $mkfs ];then
+ printf "...okay\n"
+else
+ printf "...failed\n"
+ exit 1
+fi
+
printf "Checking if parted is installed"
parted=$(which parted)