From df0f04e0c20262eafe7a49f3885b7bd2e1489745 Mon Sep 17 00:00:00 2001 From: "Robert E. Goodermote Jr." Date: Tue, 29 Oct 2024 17:50:16 -0400 Subject: [PATCH 1/2] Create patch.sh Script that updates the operating system of the device. Uses Nala for speed and parallel downloads. --- PPPwn/patch.sh | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 PPPwn/patch.sh diff --git a/PPPwn/patch.sh b/PPPwn/patch.sh new file mode 100644 index 0000000..5ef2e71 --- /dev/null +++ b/PPPwn/patch.sh @@ -0,0 +1,28 @@ +#!/usr/bin/env bash +set -e + +if [ -f /boot/firmware/pppwn/patch.log ]; then + sudo rm -rf /boot/firmware/pppwn/patch.log +fi + +patching(){ + if ! command -v nala 2>&1 >/dev/null + then + echo -e "First time run, you will only see this once!\n" + echo -e "Doing APT update...\n" + sudo apt-get update + echo -e "\nInstalling Nala...\n" + sudo apt-get install nala -y + echo -e "\nRunning Rasbian upgrade...\n" + sudo DEBIAN_FRONTEND=noninteractive nala upgrade -y + echo -e "\nAll set!" + else + echo -e "\nRunning Rasbian upgrade...\n" + sudo DEBIAN_FRONTEND=noninteractive nala upgrade -y + echo -e "\nAll set!" + fi +}; + + +patching | sudo tee /dev/tty1 | sudo tee /dev/pts/* | sudo tee -a /boot/firmware/pppwn/patch.log +exit 0 From df54a61fe30f196ccb69c780726bf304103240ec Mon Sep 17 00:00:00 2001 From: "Robert E. Goodermote Jr." Date: Wed, 30 Oct 2024 09:31:13 -0400 Subject: [PATCH 2/2] Typo --- PPPwn/patch.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PPPwn/patch.sh b/PPPwn/patch.sh index 5ef2e71..a2b1123 100644 --- a/PPPwn/patch.sh +++ b/PPPwn/patch.sh @@ -13,11 +13,11 @@ patching(){ sudo apt-get update echo -e "\nInstalling Nala...\n" sudo apt-get install nala -y - echo -e "\nRunning Rasbian upgrade...\n" + echo -e "\nRunning Raspbian upgrade...\n" sudo DEBIAN_FRONTEND=noninteractive nala upgrade -y echo -e "\nAll set!" else - echo -e "\nRunning Rasbian upgrade...\n" + echo -e "\nRunning Raspbian upgrade...\n" sudo DEBIAN_FRONTEND=noninteractive nala upgrade -y echo -e "\nAll set!" fi