bt ~ # cat script.install #!/bin/sh #Created by TheX1le clear echo "This simple script is just for installing bt2, it assumes you have created and formatted your partitions all ready" #Handles input of boot and root partitions echo "Your boot partition EX. hda1" read BOOT echo "Your root partition EX. hda3" read ROOT clear mkdir -p /tmp/backtrack/boot if [ "$BOOT" = "ROOT"]; then echo "This is not the best recomended install method" #mount /dev/$ROOT /tmp/backtrack else echo "test" #debug message #mount /dev/$BOOT /tmp/backtrack/boot #mount /dev/$ROOT /tmp/backtrack fi #copies over the files cp --preserve -R /{bin,dev,home,pentest,root,usr,etc,lib,opt,sbin,var} /tmp/backtrack echo "Backtrack files copied sucessfully" mkdir /tmp/backtrack/{mnt,proc,sys,tmp} mount --bind /dev/ /tmp/backtrack/dev/ mount -t proc proc /tmp/backtrack/proc/ cp /boot/vmlinuz /tmp/backtrack/boot echo "Kernel copied sucessfully" chroot /tmp/backtrack/ /bin/bash read -p "Backtrack copied to hard drive successfully press the ANY KEY to continue" clear #used for creation of mbr echo "Every Thing is complete run "lilo -v" and reboot into your new system" exec nano /etc/lilo.conf