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'