-
Notifications
You must be signed in to change notification settings - Fork 6
/
fasterboot.sh
executable file
·38 lines (29 loc) · 806 Bytes
/
fasterboot.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
#
# Some bits of code to run as root (`sudo su`) to speed up boot times.
# Use at your own risk. See `references.md` file.
# Static IP:
# - Assign a static IP to your Raspberry Pi's mac adress on your router.
# - Add that static IP (uncomment and modify) to /etc/dhcpcd.conf
#
# Profiling systemd services using up startup time:
systemd-analyze blame
# Removing some services:
apt-get remove -y triggerhappy
systemctl disable rpi-eeprom-update.service
systemctl disable ModemManager.service
systemctl disable hciuart
systemctl disable keyboard-setup.service
# Linux boot speedup
cat <<EOF >> /boot/config.txt
disable_splash=1
boot_delay=0
dtoverlay=disable-bt
EOF
echo -n " loglevel=5 quiet " >> /boot/cmdline.txt
# DHCP speedup
cat <<EOF >> /etc/dhcpcd.conf
noarp
ipv4only
noipv6
EOF