Last active
April 29, 2023 20:19
-
-
Save IronOxidizer/4455085d464ee3c23733692f3a358201 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#This script reduces boot times from 60s to 19s on the RPi0w | |
if [ "$(id -u)" -ne 0 ]; then | |
echo "This script must be run as root" | |
exit 1 | |
fi | |
echo ' | |
[all] | |
initial_turbo=30 | |
disable_splash=1 | |
dtoverlay=disable-bt | |
boot_delay=0 | |
' >> /boot/config.txt | |
sed -i '1s/$/ loglevel=3 quiet logo.nologo consoleblank=0 fastboot/' /boot/cmdline.txt | |
systemctl disable triggerhappy | |
systemctl disable dhcpcd | |
systemctl disable systemd-timesyncd | |
systemctl disable polkit | |
systemctl disable ModemManager | |
systemctl disable wpa_supplicant | |
systemctl disable networking | |
systemctl disable avahi-daemon | |
systemctl disable dphys-swapfile | |
systemctl disable keyboard-setup | |
systemctl disable apt-daily | |
systemctl disable raspi-config |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment