diff options
| author | James Meyer <jams@linhes.org> | 2010-12-04 23:44:45 (GMT) | 
|---|---|---|
| committer | James Meyer <jams@linhes.org> | 2010-12-04 23:44:51 (GMT) | 
| commit | f51fb708846d13222bd97b3f760eb3be902c0be0 (patch) | |
| tree | ad25ff81828f12cb7da86384863e163cb4e001f2 /build_tools/clarch/larch/run/usb2iso | |
| parent | 4384efe238cdfeac86fae0d8e1097a409350f8c6 (diff) | |
| download | linhes_dev-f51fb708846d13222bd97b3f760eb3be902c0be0.zip | |
remove old versions of larch 6 and 7
Diffstat (limited to 'build_tools/clarch/larch/run/usb2iso')
| -rwxr-xr-x | build_tools/clarch/larch/run/usb2iso | 78 | 
1 files changed, 0 insertions, 78 deletions
| diff --git a/build_tools/clarch/larch/run/usb2iso b/build_tools/clarch/larch/run/usb2iso deleted file mode 100755 index 885f726..0000000 --- a/build_tools/clarch/larch/run/usb2iso +++ /dev/null @@ -1,78 +0,0 @@ -#!/bin/sh - -# usb2iso - -# For use (especially) after a usb-stick larch system (syslinux based -# only at the moment) has been modified, this will generate a bootable -# iso from it. - -# WARNING - a lot of space is needed as the whole cd content must be copied. - -# $1 is the mount point of the usb-stick. If none use /.livesys/medium -# (i.e. assuming it is being run from a larch system). -# The iso will be generated in the current working directory. -#=================================================================== -# 2008.04.21 - -ISOLINUXBIN=/usr/lib/syslinux/isolinux.bin - -APP="$( basename $0 )" -# Get path to larch base directory, via the location of this script -FULLPATH="$( readlink -f $0 )" -SCRIPTDIR="$( dirname ${FULLPATH} )" - -mkiso () -{ -    mkisofs -r -l $1 \ -        -no-emul-boot -boot-load-size 4 -boot-info-table \ -        -input-charset=UTF-8 \ -        -publisher "designed by gradgrind, licence: GPL" \ -        -A "larch-5" \ -        -o "livecd.iso" "${CDDATA}" - -    if [ $? -eq 0 ]; then -        echo "// Your ISO has been created as livecd.iso" -    else -        echo "ERROR: iso build failed" 1>&2 -        return 1 -    fi -} - -if [ -z "$1" ]; then -    if [ -d /.livesys/medium/larch ]; then -        MP=/.livesys/medium -    else -        echo "Must pass usb-stick mount-point as argument" -        exit 1 -    fi -else -    if ! [ -d "$1/larch" ]; then -        echo "No larch system found at $1" -        exit 1 -    fi -    MP="$( readlink -f $1 )" -fi - -CDDATA=$( pwd )/bootcd -rm -rf ${CDDATA} -mkdir -p ${CDDATA} - -if ! cp -r ${MP}/syslinux ${CDDATA} &>/dev/null; then -    echo "No larch boot files found at ${MP}/syslinux" -    exit 1 -fi -mv ${CDDATA}/syslinux ${CDDATA}/isolinux -mv ${CDDATA}/isolinux/syslinux.cfg ${CDDATA}/isolinux/isolinux.cfg -if ! cp ${ISOLINUXBIN} ${CDDATA}/isolinux; then -    echo "Couldn't find isolinux.bin" -    exit 1 -fi - -echo "Copying data, this could take a while" -cp -r ${MP}/larch ${CDDATA} -cp ${MP}/system.sqf ${CDDATA} -cp ${MP}/mods.sqf ${CDDATA} -cp ${MP}/overlay.ovl ${CDDATA} - -mkiso "-b isolinux/isolinux.bin -c isolinux/isolinux.boot" - | 
