Move hook scripts to the location expected by live-build 4.x
And drop compatibility with live-build 3.x at the same time.debian-cd
parent
934602351b
commit
e7b766f01b
@ -1,15 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
if [ ! -d isolinux ]; then
|
|
||||||
cd binary
|
|
||||||
fi
|
|
||||||
|
|
||||||
cat >>isolinux/install.cfg <<END
|
|
||||||
|
|
||||||
label installspk
|
|
||||||
menu label Install with ^speech synthesis
|
|
||||||
linux /install/gtk/vmlinuz
|
|
||||||
initrd /install/gtk/initrd.gz
|
|
||||||
append video=vesa:ywrap,mtrr vga=788 speakup.synth=soft -- quiet
|
|
||||||
END
|
|
||||||
|
|
@ -1,15 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
if [ ! -d isolinux ]; then
|
|
||||||
cd binary
|
|
||||||
fi
|
|
||||||
|
|
||||||
cat >>isolinux/live.cfg <<END
|
|
||||||
|
|
||||||
label live-forensic
|
|
||||||
menu label Live (^forensic mode)
|
|
||||||
linux /live/vmlinuz
|
|
||||||
initrd /live/initrd.img
|
|
||||||
append boot=live noconfig=sudo username=root hostname=kali noswap noautomount
|
|
||||||
END
|
|
||||||
|
|
@ -1,14 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
# Manually enabling pulseaudio for root since autospawning does
|
|
||||||
# not work for root
|
|
||||||
# See https://bugs.kali.org/view.php?id=2392
|
|
||||||
systemctl --user enable pulseaudio.service || true
|
|
||||||
|
|
||||||
# Disable the udev rules renaming the network interfaces (can also be
|
|
||||||
# achieved with kernel command line net.ifnames=0 but we don't have a nice
|
|
||||||
# way to set it on the installed system)
|
|
||||||
mkdir -p /etc/systemd/network
|
|
||||||
ln -sf /dev/null /etc/systemd/network/90-mac-for-usb.link
|
|
||||||
ln -sf /dev/null /etc/systemd/network/99-default.link
|
|
||||||
update-initramfs -u
|
|
@ -1 +0,0 @@
|
|||||||
../accessibility-menu.binary
|
|
@ -0,0 +1,15 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
if [ ! -d isolinux ]; then
|
||||||
|
cd binary
|
||||||
|
fi
|
||||||
|
|
||||||
|
cat >>isolinux/install.cfg <<END
|
||||||
|
|
||||||
|
label installspk
|
||||||
|
menu label Install with ^speech synthesis
|
||||||
|
linux /install/gtk/vmlinuz
|
||||||
|
initrd /install/gtk/initrd.gz
|
||||||
|
append video=vesa:ywrap,mtrr vga=788 speakup.synth=soft -- quiet
|
||||||
|
END
|
||||||
|
|
@ -1 +0,0 @@
|
|||||||
../forensic-menu.binary
|
|
@ -0,0 +1,15 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
if [ ! -d isolinux ]; then
|
||||||
|
cd binary
|
||||||
|
fi
|
||||||
|
|
||||||
|
cat >>isolinux/live.cfg <<END
|
||||||
|
|
||||||
|
label live-forensic
|
||||||
|
menu label Live (^forensic mode)
|
||||||
|
linux /live/vmlinuz
|
||||||
|
initrd /live/initrd.img
|
||||||
|
append boot=live noconfig=sudo username=root hostname=kali noswap noautomount
|
||||||
|
END
|
||||||
|
|
@ -1 +0,0 @@
|
|||||||
../kali-hacks.chroot
|
|
@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Manually enabling pulseaudio for root since autospawning does
|
||||||
|
# not work for root
|
||||||
|
# See https://bugs.kali.org/view.php?id=2392
|
||||||
|
systemctl --user enable pulseaudio.service || true
|
||||||
|
|
||||||
|
# Disable the udev rules renaming the network interfaces (can also be
|
||||||
|
# achieved with kernel command line net.ifnames=0 but we don't have a nice
|
||||||
|
# way to set it on the installed system)
|
||||||
|
mkdir -p /etc/systemd/network
|
||||||
|
ln -sf /dev/null /etc/systemd/network/90-mac-for-usb.link
|
||||||
|
ln -sf /dev/null /etc/systemd/network/99-default.link
|
||||||
|
update-initramfs -u
|
@ -1 +0,0 @@
|
|||||||
../persistence-menu.binary
|
|
@ -0,0 +1,22 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
if [ ! -d isolinux ]; then
|
||||||
|
cd binary
|
||||||
|
fi
|
||||||
|
|
||||||
|
cat >>isolinux/live.cfg <<END
|
||||||
|
|
||||||
|
label live-persistence
|
||||||
|
menu label ^Live USB Persistence (check kali.org/prst)
|
||||||
|
linux /live/vmlinuz
|
||||||
|
initrd /live/initrd.img
|
||||||
|
append boot=live noconfig=sudo username=root hostname=kali persistence
|
||||||
|
|
||||||
|
label live-encrypted-persistence
|
||||||
|
menu label ^Live USB Encrypted Persistence (check kali.org/prst)
|
||||||
|
linux /live/vmlinuz
|
||||||
|
initrd /live/initrd.img
|
||||||
|
append boot=live persistent=cryptsetup persistence-encryption=luks noconfig=sudo username=root hostname=kali persistence
|
||||||
|
|
||||||
|
END
|
||||||
|
|
@ -1 +0,0 @@
|
|||||||
../sleep.chroot
|
|
@ -0,0 +1,22 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
kali_menu_version=$(dpkg-query -W -f'${Version}\n' kali-menu)
|
||||||
|
kali_menu_pidfile="/var/lock/kali-menu"
|
||||||
|
|
||||||
|
# Wait until update-kali-menu is over
|
||||||
|
if dpkg --compare-versions "$kali_menu_version" ge 2015.3.0; then
|
||||||
|
# This version puts the PID in its lock file
|
||||||
|
if [ -s $kali_menu_pidfile ]; then
|
||||||
|
pid=$(cat $kali_menu_pidfile)
|
||||||
|
while [ -n "$pid" ] && [ -e /proc/$pid ]; do
|
||||||
|
echo "Sleeping 10 seconds as update-kali-menu is still running (pid $pid)..."
|
||||||
|
sleep 10
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
# This version lacks PID info, we match on process name instead
|
||||||
|
while pgrep -f update-kali-menu >/dev/null; do
|
||||||
|
echo "Sleeping 10 seconds as update-kali-menu is still running..."
|
||||||
|
sleep 10
|
||||||
|
done
|
||||||
|
fi
|
@ -1,22 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
if [ ! -d isolinux ]; then
|
|
||||||
cd binary
|
|
||||||
fi
|
|
||||||
|
|
||||||
cat >>isolinux/live.cfg <<END
|
|
||||||
|
|
||||||
label live-persistence
|
|
||||||
menu label ^Live USB Persistence (check kali.org/prst)
|
|
||||||
linux /live/vmlinuz
|
|
||||||
initrd /live/initrd.img
|
|
||||||
append boot=live noconfig=sudo username=root hostname=kali persistence
|
|
||||||
|
|
||||||
label live-encrypted-persistence
|
|
||||||
menu label ^Live USB Encrypted Persistence (check kali.org/prst)
|
|
||||||
linux /live/vmlinuz
|
|
||||||
initrd /live/initrd.img
|
|
||||||
append boot=live persistent=cryptsetup persistence-encryption=luks noconfig=sudo username=root hostname=kali persistence
|
|
||||||
|
|
||||||
END
|
|
||||||
|
|
@ -1,22 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
kali_menu_version=$(dpkg-query -W -f'${Version}\n' kali-menu)
|
|
||||||
kali_menu_pidfile="/var/lock/kali-menu"
|
|
||||||
|
|
||||||
# Wait until update-kali-menu is over
|
|
||||||
if dpkg --compare-versions "$kali_menu_version" ge 2015.3.0; then
|
|
||||||
# This version puts the PID in its lock file
|
|
||||||
if [ -s $kali_menu_pidfile ]; then
|
|
||||||
pid=$(cat $kali_menu_pidfile)
|
|
||||||
while [ -n "$pid" ] && [ -e /proc/$pid ]; do
|
|
||||||
echo "Sleeping 10 seconds as update-kali-menu is still running (pid $pid)..."
|
|
||||||
sleep 10
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
# This version lacks PID info, we match on process name instead
|
|
||||||
while pgrep -f update-kali-menu >/dev/null; do
|
|
||||||
echo "Sleeping 10 seconds as update-kali-menu is still running..."
|
|
||||||
sleep 10
|
|
||||||
done
|
|
||||||
fi
|
|
Loading…
Reference in New Issue