OpenBSD upgrade script
This commit is contained in:
parent
75d2fae5d8
commit
0fc7bbdf6f
22
upgrade.sh__oda.armorique.lan
Executable file
22
upgrade.sh__oda.armorique.lan
Executable file
@ -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'
|
Loading…
Reference in New Issue
Block a user