> *** /usr/sbin/sysupgrade Sat Oct 12 18:52:33 2019 > --- sysupgrade Fri Oct 25 02:02:11 2019 > *************** > *** 1,6 **** > #!/bin/ksh > # > ! # $OpenBSD: sysupgrade.sh,v 1.25 2019/09/28 17:30:07 ajacoutot Exp $ > # > # Copyright (c) 1997-2015 Todd Miller, Theo de Raadt, Ken Westerback > # Copyright (c) 2015 Robert Peichaer <r...@openbsd.org> > --- 1,6 ---- > #!/bin/ksh > # > ! # $OpenBSD$ > # > # Copyright (c) 1997-2015 Todd Miller, Theo de Raadt, Ken Westerback > # Copyright (c) 2015 Robert Peichaer <r...@openbsd.org> > *************** > *** 158,163 **** > --- 158,172 ---- > # INSTALL.*, bsd*, *.tgz > SETS=$(sed -n -e 's/^SHA256 (\(.*\)) .*/\1/' \ > -e '/^INSTALL\./p;/^bsd/p;/\.tgz$/p' SHA256) > + + echo "===========" > + echo "$SETS" > + echo "-----------" > + SETS="INSTALL.i386\nbsd\nbsd.rd\nbase66.tgz\nman66.tgz" > + echo "-----------" > + echo "$SETS" > + echo "===========" > + return #Comment out this line once you are satisfied with the set > selection. > OLD_FILES=$(ls) > OLD_FILES=$(rmel SHA256 $OLD_FILES)
For small resource-constrained systems this is probably a good idea, but this patch will only work for an upgrade to 6.6. It would be a bit more future-proof to just modify the call to sed directly to get bsd*, base*, and man*: --- sysupgrade.sh Fri Oct 18 10:38:51 2019 +++ sysupgrade-base.sh Fri Oct 18 10:48:13 2019 @@ -157,7 +157,7 @@ # INSTALL.*, bsd*, *.tgz SETS=$(sed -n -e 's/^SHA256 (\(.*\)) .*/\1/' \ - -e '/^INSTALL\./p;/^bsd/p;/\.tgz$/p' SHA256) + -e '/^INSTALL\./p;/^bsd/p;/^base/p;/^man/p' SHA256) OLD_FILES=$(ls) OLD_FILES=$(rmel SHA256 $OLD_FILES) Hope this helps, Jacob