Skip to content

Commit

Permalink
In postUpdate.sh, check if package bb-usb-gadgets is installed.
Browse files Browse the repository at this point in the history
If not, run apt update and then apt install bb-usb-gadgets.
This fixes an issue caused by the previous release, where a new
MAC address is being generated every reboot.
SOFT-578
  • Loading branch information
Jake Danczyk committed Jan 21, 2021
1 parent 9bb88b9 commit 82e9d49
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions postUpdate.sh
Expand Up @@ -23,6 +23,11 @@ cd /opt/scripts/boot
sudo git fetch origin
sudo git checkout b61125c1485bee929340cacc06c85c6fcfd678bc

if ! dpkg -l | grep bb-usb-gadgets; then
sudo apt update
sudo apt install bb-usb-gadgets
fi

# Prevent shared memory from being cleaned up when pocketnc user closes SSH
sudo sed -i 's/^#RemoveIPC=yes/RemoveIPC=no/' /etc/systemd/logind.conf

Expand Down

0 comments on commit 82e9d49

Please sign in to comment.