disable bluetooth and unattended upgrades

This commit is contained in:
Aiden McClelland
2021-12-09 15:20:32 -07:00
committed by Aiden McClelland
parent f69d4a386c
commit 6d6e4c1807
2 changed files with 8 additions and 4 deletions

View File

@@ -5,8 +5,11 @@ set -e
! test -f /etc/docker/daemon.json || rm /etc/docker/daemon.json
apt update
apt install -y \
apt-get update
apt-get purge -y \
bluez \
unattended-upgrades
apt-get install -y \
docker.io \
tor \
nginx \
@@ -21,7 +24,8 @@ apt install -y \
ecryptfs-utils \
cifs-utils \
samba-common-bin
sed -i 's/"1"/"0"/g' /etc/apt/apt.conf.d/20auto-upgrades
apt-get autoremove -y
sed -i 's/Restart=on-failure/Restart=always/g' /lib/systemd/system/tor@default.service
sed -i '/}/i \ \ \ \ application\/wasm \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ wasm;' /etc/nginx/mime.types
sed -i 's/# server_names_hash_bucket_size 64;/server_names_hash_bucket_size 128;/g' /etc/nginx/nginx.conf

View File

@@ -27,7 +27,7 @@ sudo cp /tmp/eos-mnt/cmdline.txt /tmp/eos-mnt/cmdline.txt.orig
sudo sed -i 's/^/usb-storage.quirks=152d:0562:u /g' /tmp/eos-mnt/cmdline.txt
cat /tmp/eos-mnt/config.txt | grep -v "dtoverlay=" | sudo tee /tmp/eos-mnt/config.txt.tmp
echo "dtoverlay=pwm-2chan" | sudo tee -a /tmp/eos-mnt/config.txt.tmp
echo "dtoverlay=pwm-2chan,disable-bt" | sudo tee -a /tmp/eos-mnt/config.txt.tmp
sudo mv /tmp/eos-mnt/config.txt.tmp /tmp/eos-mnt/config.txt
# Unmount the boot partition and mount embassy partition