#!/bin/bash if [ "`id -u`" -ne "0" ] then echo "Error: requiere de privilegios de superusuario." exit 1 fi if [ -f /home/debian-live/binary.iso ] then rm /home/debian-live/binary.iso fi if [ -f /home/debian-live/binary/casper/filesystem.squashfs ] then rm /home/debian-live/binary/casper/filesystem.squashfs fi mksquashfs /home/debian-live/chroot /home/debian-live/binary/casper/filesystem.squashfs mkisofs -A "Debian Live Iskariote" -p "Debian Live; http://debian-live.alioth.debian.org/" -o /home/debian-live/binary.iso -r -J -l -V "Debian Live `date +%Y%m%d`" -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table /home/debian-live/binary