5 echo "usage: ${0} [image-file] [mount-point]"
10 if [ -f ${image_file} ]; then
13 echo "can't find regular file ${image_file}"
18 if [ -d ${mount_point} ]; then
21 echo "can't find directory ${mount_point}"
25 # mount raw qemu device
26 mount -o loop,rw,offset=32256 ${image_file} ${mount_point}