From 0fc7bbdf6ffa29c45e427fcc732fce5a22608ee0 Mon Sep 17 00:00:00 2001 From: Meutel Date: Sun, 19 Nov 2017 10:42:51 +0100 Subject: [PATCH] OpenBSD upgrade script --- upgrade.sh__oda.armorique.lan | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 upgrade.sh__oda.armorique.lan diff --git a/upgrade.sh__oda.armorique.lan b/upgrade.sh__oda.armorique.lan new file mode 100755 index 0000000..4029ff3 --- /dev/null +++ b/upgrade.sh__oda.armorique.lan @@ -0,0 +1,22 @@ +#!/bin/sh + +# downloads latest OpenBSD snapshot + +UPGRADEDIR="$HOME/upgrade" +FILES=" BOOTIA32.EFI BOOTX64.EFI BUILDINFO INSTALL.amd64 SHA256 SHA256.sig base62.tgz bsd bsd.mp bsd.rd comp62.tgz game62.tgz index.txt man62.tgz update.sh xbase62.tgz xfont62.tgz xserv62.tgz xshare62.tgz" +URL="$(cat /etc/installurl)/snapshots/$(uname -m)/" + +ls -l $UPGRADEDIR +for f in $FILES +do + ftp -o $UPGRADEDIR/$f $URL$f +done +ls -l $UPGRADEDIR + +echo '=== INSTALL:' +echo "doas cp $UPGRADEDIR/bsd.rd /" +echo 'doas reboot' +echo ' Boot prompt: b bsd.rd' +echo " Select upgrade, files on disk, path /mnt/$UPGRADEDIR, ... reboot" +echo 'doas sysmerge' +echo 'doas pkg_add -vuV'