3 # This script generates a "memstick image" (image that can be copied to a
4 # USB memory stick) from a directory tree. Note that the script does not
5 # clean up after itself very well for error conditions on purpose so the
6 # problem can be diagnosed (full filesystem most likely but ...).
8 # Usage: make-memstick.sh <directory tree> <image filename>
13 PATH=/bin:/usr/bin:/sbin:/usr/sbin
19 echo "make-memstick.sh /path/to/directory /path/to/image/file"
23 if [ ! -d ${1} ]; then
24 echo "${1} must be a directory"
29 echo "won't overwrite ${2}"
33 makefs -B little ${2} ${1}