Last active
December 11, 2022 18:29
-
-
Save wastrachan/34a1aaedde053468664d931f08418d75 to your computer and use it in GitHub Desktop.
Edgerouter Upgrade Steps
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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