You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			55 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Bash
		
	
			
		
		
	
	
			55 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Bash
		
	
#!/bin/sh
 | 
						|
 | 
						|
set -e
 | 
						|
 | 
						|
TDIR=$1
 | 
						|
MIRROR=$2
 | 
						|
DISKNUM=$3
 | 
						|
CDDIR=$4
 | 
						|
ARCHES=$5
 | 
						|
 | 
						|
cd $CDDIR
 | 
						|
 | 
						|
# Rebrand Debian into Kali
 | 
						|
# The theme doesn't exist on arm64...
 | 
						|
if [ "$ARCHES" != "arm64" ]; then
 | 
						|
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
 | 
						|
fi
 | 
						|
 | 
						|
# Replace Debian specific documentation
 | 
						|
rm -rf css
 | 
						|
cat >README.txt <<EOF
 | 
						|
This disc contains an installer for Kali Linux.
 | 
						|
 | 
						|
Read more at: https://www.kali.org
 | 
						|
EOF
 | 
						|
cat >README.html <<EOF
 | 
						|
<html>
 | 
						|
<head><title>Kali Linux Installer Disc</title></head>
 | 
						|
<body>
 | 
						|
This disc contains an installer for Kali Linux.
 | 
						|
 | 
						|
Read more at: <a href="https://www.kali.org">www.kali.org</a>
 | 
						|
</body>
 | 
						|
</html>
 | 
						|
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
 |