Skip to content

Commit

Permalink
a few more optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
CamDavidsonPilon committed Feb 22, 2024
1 parent 758c354 commit 64a29dd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
10 changes: 7 additions & 3 deletions workspace/scripts/03-configure-rpi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ if [ "$WORKER" == "1" ]; then
sudo systemctl disable hciuart
echo "dtoverlay=disable-bt" | sudo tee -a /boot/config.txt
sudo systemctl disable bluetooth.service

sudo apt remove --purge bluez -y
sudo systemctl disable keyboard-setup.service
fi

Expand Down Expand Up @@ -87,17 +87,21 @@ sudo systemctl disable alsa-restore.service
sudo systemctl disable alsa-state.service
sudo systemctl disable userconfig.service

sudo systemctl mask apt-daily-upgrade
sudo systemctl mask apt-daily
sudo systemctl disable apt-daily-upgrade.timer
sudo systemctl disable apt-daily.timer


# turn off ipv6
# File to be modified
file="/etc/sysctl.d/90-disable-ipv6.conf"

# Lines to be added
lines="net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1"

echo "$lines" | sudo tee "$file" > /dev/null

# remove man page refreshes
sudo rm /var/lib/man-db/auto-update

4 changes: 2 additions & 2 deletions workspace/scripts/files/bash/local_access_point.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ export LC_ALL=C

rfkill unblock wifi
for filename in /var/lib/systemd/rfkill/*:wlan ; do
echo 0 > $filename
echo 0 > "$filename"
done

iw reg set "$(head -c 2 /boot/firmware/local_access_point)"


sudo nmcli connection delete PioreactorAP || true

sudo nmcli connection add type wifi con-name PioreactorAP autoconnect no wifi.mode ap wifi.ssid $(crudini --get /home/pioreactor/.pioreactor/config.ini local_access_point ssid) ipv4.method shared ipv6.method disabled
sudo nmcli connection add type wifi con-name PioreactorAP autoconnect no wifi.mode ap wifi.ssid "$(crudini --get /home/pioreactor/.pioreactor/config.ini local_access_point ssid)" ipv4.method shared ipv6.method disabled

sudo nmcli connection modify PioreactorAP 802-11-wireless-security.key-mgmt wpa-psk
sudo nmcli connection modify PioreactorAP 802-11-wireless-security.proto "$(crudini --get /home/pioreactor/.pioreactor/config.ini local_access_point proto 2> /dev/null || echo 'rsn')"
Expand Down
2 changes: 1 addition & 1 deletion workspace/scripts/files/config.example.ini
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ pause_between_subdoses_seconds=5
waste_removal_multiplier=2
max_volume_to_warn=17.0
max_volume_to_stop=18.0
max_subdose=0.75
max_subdose=1.0


[dosing_automation.pid_morbidostat]
Expand Down

0 comments on commit 64a29dd

Please sign in to comment.