slitaz-modular view initramfs/usr/bin/dir2xz @ rev 54

Fixed off option when tazpanel is release. Made sure MAIN_WWW_DIR/slitaz links to /var/www/slitaz. Add slitaz-modular soft link to COOKING folder for new slitaz-modular script.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun Apr 10 12:44:31 2011 +0000 (2011-04-10)
parents
children
line source
1 #!/bin/bash
2 # convert directory tree into .xz compressed file
3 # which can be used as a LiveCD module
4 #
5 # Author: Tomas M. <http://www.linux-live.org>
6 #
8 PATH=.:$(dirname $0):/usr/lib:$PATH
9 . liblinuxlive || exit 1
11 if [ ! -d "$1" -o "$2" = "" ]; then
12 echo
13 echo "Convert directory tree into .lzm compressed module"
14 echo "usage: $0 source_directory output_file.xz"
15 exit 1
16 fi
18 create_module "$1" "$2" -comp xz -Xbcj x86
19 if [ $? != 0 ]; then echo "error building compressed image"; exit 1; fi