#! /bin/bash # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - function switch_disk { disk=$1 if [ -z "$disk" -o ! -f "$tmp_dir/syslinux.img_$disk" ] ; then echo "no such disk: $disk" exit 1 fi dd if="$tmp_dir/syslinux.img_$disk" of="$tmp_dir/syslinux.img" conv=notrunc status=noxfer } # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - function gfxtest_isolinux { set -f $gfxboot -b isolinux --cdrom \ --test --preview --archive $opt_archive $gfxboot_args \ --test-add-files $add_files --test-rm-files gfxtest.config $rm_files $gfxboot_x_args set +f } # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - function gfxtest_syslinux { set -f $gfxboot -b syslinux \ --test --preview --archive $opt_archive $gfxboot_args \ --test-add-files $add_files --test-rm-files gfxtest.config $rm_files $gfxboot_x_args set +f } # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - function gfxtest_pxelinux { set -f $gfxboot -b pxelinux --net \ --test --preview --archive $opt_archive $gfxboot_args \ --test-add-files $add_files --test-rm-files gfxtest.config $rm_files $gfxboot_x_args set +f } # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - function gfxtest_grub { set -f $gfxboot -b grub \ --test --preview --archive $opt_archive $gfxboot_args \ --test-add-files $add_files --test-rm-files gfxtest.config $rm_files $gfxboot_x_args set +f } # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - function gfxtest_lilo { set -f $gfxboot -b lilo \ --test --preview --archive $opt_archive $gfxboot_args \ --test-add-files $add_files --test-rm-files gfxtest.config $rm_files $gfxboot_x_args set +f } # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - function usage { cat <