#!/bin/bash # convert directory tree into .lzm compressed file # which can be used as a LiveCD module # # Author: Tomas M. # PATH=.:$(dirname $0):/usr/lib:$PATH . liblinuxlive || exit 1 if [ ! -d "$1" -o "$2" = "" ]; then echo echo "Convert directory tree into .lzm compressed module" echo "usage: $0 source_directory output_file.lzm" exit 1 fi create_module "$1" "$2" if [ $? != 0 ]; then echo "error building compressed image"; exit 1; fi