Skip to content

Instantly share code, notes, and snippets.

@wastrachan
Last active December 11, 2022 18:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wastrachan/34a1aaedde053468664d931f08418d75 to your computer and use it in GitHub Desktop.
Save wastrachan/34a1aaedde053468664d931f08418d75 to your computer and use it in GitHub Desktop.
Edgerouter Upgrade Steps
#### Make sure install-pkgs is present in /config/scripts/pre-config.d/install-pkgs
#### Pre-Upgrade
mkdir -p /config/data/firstboot/install-packages/
cd /config/data/firstboot/install-packages/
curl -OL <https://github.com/WireGuard/wireguard-vyatta-ubnt/releases>
#### Upgrade
add system image <https://www.ui.com/download/edgemax/edgerouter-4>
sudo reboot
#### Post-upgrade
sudo apt update
sudo apt install vim htop speedometer mtr-tiny
#### Make sure install-pkgs is present in /config/scripts/pre-config.d/install-pkgs
#### Pre-Upgrade
mkdir -p /config/data/firstboot/install-packages/
cd /config/data/firstboot/install-packages/
curl -OL <https://github.com/WireGuard/wireguard-vyatta-ubnt/releases>
sudo apt-get update
sudo apt-get download wpasupplicant libpcsclite1
#### Upgrade
add system image <https://www.ui.com/download/edgemax/edgerouter-4>
sudo reboot
#### Post-upgrade
sudo cp /config/eap/wpa-supplicant-eth0.service /etc/systemd/system/wpa-supplicant-eth0.service
sudo systemctl enable wpa-supplicant-eth0
sudo systemctl start wpa-supplicant-eth0
sudo apt update
sudo apt install vim htop wpasupplicant speedometer mtr-tiny
#!/usr/bin/env bash
# Install to: /config/scripts/pre-config.d/install-pkgs
#
# This script checks /config/data/firstboot/install-packages
# for packages and installs any that are not installed.
#
# Original Source: https://github.com/britannic/install-edgeos-packages
downloads=/config/data/firstboot/install-packages
cd $downloads
for pkg in *; do
dpkg-query -W --showformat='${Status}\n' \
$(dpkg --info "${pkg}" | \
grep "Package: " | \
awk -F' ' '{ print $NF}') > /dev/null 2>&1 || dpkg -i ${pkg}
done
cd -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment