#!/bin/sh set -e TDIR=$1 MIRROR=$2 DISKNUM=$3 CDDIR=$4 ARCHES=$5 cd $CDDIR # Rebrand Debian into Kali sed -i -e 's|Debian GNU/Linux|Kali Linux|g' \ -e 's|Kali GNU/Linux|Kali Linux|g' \ -e 's|Debian kali-rolling|Kali Rolling|g' \ -e 's|Debian|Kali|g' \ -e 's|DEBIAN|KALI|g' \ ../boot$DISKNUM/isolinux/menu.cfg \ ../boot$DISKNUM/isolinux/*.txt \ boot/grub/theme/* \ autorun.inf # Replace Debian specific documentation rm -rf css cat >README.txt <README.html < Kali Linux Installer Disc This disc contains an installer for Kali Linux. Read more at: www.kali.org EOF # Replace kali-last-snapshot with kali-rolling if [ -e dists/kali-last-snapshot ]; then mv dists/kali-last-snapshot dists/kali-rolling rm -f dists/stable && ln -sf kali-rolling dists/stable sed -i -e 's|kali-last-snapshot|kali-rolling|g' \ dists/kali-rolling/Release fi # Redo the md5sum.txt due to our changes find . -type f | grep -v ./md5sum.txt | xargs md5sum | sort -uk2 > md5sum.txt