##// END OF EJS Templates
kernel features + nexmon monitor mode wlan patch(kali-kernel) with RPI3,RPI3B+ firmware patch...
kernel features + nexmon monitor mode wlan patch(kali-kernel) with RPI3,RPI3B+ firmware patch - ENABLE_NEXMON to use raspberry pi kali kernel sources which include patched nl80211 driver. Needed to crosscompile nexmon. Firmware for RPI3 and RPI3B+ is patched in the process to enable moniotor mode and injection. - Support for precompiled kernel. RPI3 64bit kernel from sakaki and a multi kernel (supporting all RPI models) from hyperiotOS. Needs further testing! - start.elf isn't supplied from precompiled kernel so always install them - ENABLE_SYSTEMDSWAP enables swapping service supporting new KERNEL_ZSWAP feature and also manages swap files - KERNEL_SECURITY activates apparmor, keyring,str/mem cpy protection, audit funcionality, integrity checks - KERNEL_ZSWAP enables compressed swap kernel feature. -KERNEL_VIRT enables virtualisation on RPI2,3,3P -KERNEL_BPF enables bpf syscall (supress journald warning message) - KERNEL_NF enable netfilter firewall (iptables-legacy is not default anymore) - KERNEL_DEFAULT_GOV set default cpu governor

Fichier de la dernière révision:

r94:2ce085c56493
r502:3d4e292749a1
Show More
50-firstboot.sh
49 lines | 1.5 KiB | application/x-sh | BashLexer
#
# First boot actions
#
# Load utility functions
. ./functions.sh
# Prepare rc.firstboot script
cat files/firstboot/10-begin.sh > "${ETC_DIR}/rc.firstboot"
# Ensure openssh server host keys are regenerated on first boot
if [ "$ENABLE_SSHD" = true ] ; then
cat files/firstboot/21-generate-ssh-keys.sh >> "${ETC_DIR}/rc.firstboot"
fi
# Prepare filesystem auto expand
if [ "$EXPANDROOT" = true ] ; then
if [ "$ENABLE_CRYPTFS" = false ] ; then
cat files/firstboot/22-expandroot.sh >> "${ETC_DIR}/rc.firstboot"
else
# Regenerate initramfs to remove encrypted root partition auto expand
cat files/firstboot/23-regenerate-initramfs.sh >> "${ETC_DIR}/rc.firstboot"
fi
fi
# Ensure that dbus machine-id exists
cat files/firstboot/24-generate-machineid.sh >> "${ETC_DIR}/rc.firstboot"
# Create /etc/resolv.conf symlink
cat files/firstboot/25-create-resolv-symlink.sh >> "${ETC_DIR}/rc.firstboot"
# Configure automatic network interface names
if [ "$ENABLE_IFNAMES" = true ] ; then
cat files/firstboot/26-config-ifnames.sh >> "${ETC_DIR}/rc.firstboot"
fi
# Finalize rc.firstboot script
cat files/firstboot/99-finish.sh >> "${ETC_DIR}/rc.firstboot"
chmod +x "${ETC_DIR}/rc.firstboot"
# Install default rc.local if it does not exist
if [ ! -f "${ETC_DIR}/rc.local" ] ; then
install_exec files/etc/rc.local "${ETC_DIR}/rc.local"
fi
# Add rc.firstboot script to rc.local
sed -i '/exit 0/d' "${ETC_DIR}/rc.local"
echo /etc/rc.firstboot >> "${ETC_DIR}/rc.local"
echo exit 0 >> "${ETC_DIR}/rc.local"