23 lines
652 B
Plaintext
23 lines
652 B
Plaintext
|
#!/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'
|