From 6d6e4c18073e53c331c96a7faaa6cee6b51b7138 Mon Sep 17 00:00:00 2001 From: Aiden McClelland Date: Thu, 9 Dec 2021 15:20:32 -0700 Subject: [PATCH] disable bluetooth and unattended upgrades --- build/initialization.sh | 10 +++++++--- build/write-image.sh | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/build/initialization.sh b/build/initialization.sh index 991af0a1a..2b49cb6ec 100755 --- a/build/initialization.sh +++ b/build/initialization.sh @@ -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 diff --git a/build/write-image.sh b/build/write-image.sh index 14fe3a7e1..550d7a21f 100755 --- a/build/write-image.sh +++ b/build/write-image.sh @@ -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