From faa95357dbe8bb719ac39143c0b21df9cf8d9d66 Mon Sep 17 00:00:00 2001 From: Foxtrot Date: Fri, 6 Sep 2019 23:18:27 +0100 Subject: [PATCH] Firmware: Release 6.1 Changelog: - Address an issue where modules would not show in the modules listing. --- updates/6.1.update | 22 ++++++++++++++++++++++ updates/current_version | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 updates/6.1.update diff --git a/updates/6.1.update b/updates/6.1.update new file mode 100644 index 0000000..b13d35e --- /dev/null +++ b/updates/6.1.update @@ -0,0 +1,22 @@ +function sha256sum() { + python -sBc "import hashlib;print hashlib.sha256(open('$1','rb').read()).hexdigest()" +} + +echo -e "Update Available. Install will begin in 15 seconds...\n\n" +echo -e "All local LAN Turtle data will be erased.\n\n" +echo -e "Press CTRL+C to CANCEL\n\n" +sleep 15 +echo -e "Downloading Upgrade file, please wait.\n\n" +wget -q -O /tmp/upgrade.bin https://downloads.hak5.org/api/devices/lanturtle/firmwares/6.1 +echo -e "Upgrade file downloaded. Verifying file integrity.\n\n" +[[ "$(sha256sum /tmp/upgrade.bin)" == "e8af71827f0c98fc1e62b531e2f0e4dbad12c1e45738affd6aaeedc92142af76" ]] && { + echo -e "DO NOT UNPLUG OR POWER DOWN THE LAN TURTLE\n\n" + echo -e "Upgrade in progress. Please wait ~5 minutes.\n" + echo -e "The LAN Turtle will reboot when the upgrade is complete.\n" + echo -e "This SSH session will now close.\n" + echo "sleep 10 && sysupgrade -n /tmp/upgrade.bin" | at now &> /dev/null + sleep 8 && clear + killall sshd +} || { + echo -e "SHA256 checksum missmatch. Please try again." +} diff --git a/updates/current_version b/updates/current_version index 1e8b314..a435f5a 100644 --- a/updates/current_version +++ b/updates/current_version @@ -1 +1 @@ -6 +6.1