=================================================================== RCS file: /cvs/openbsd/update_openbsd/update_openbsd,v retrieving revision 1.121 retrieving revision 1.125 diff -u -r1.121 -r1.125 --- openbsd/update_openbsd/update_openbsd 2019/03/02 01:02:02 1.121 +++ openbsd/update_openbsd/update_openbsd 2019/04/23 23:38:48 1.125 @@ -1,5 +1,5 @@ #!/bin/sh -# $AFresh1: update_openbsd,v 1.120 2019/03/02 00:34:34 andrew Exp $ +# $AFresh1: update_openbsd,v 1.124 2019/03/31 21:10:01 andrew Exp $ # # Copyright (c) 2012 Andrew Fresh # @@ -649,6 +649,9 @@ . ${HOME}/.update_openbsdrc fi +if [ -z "$MIRROR" -a -e /etc/installurl ]; then + MIRROR=$(head -1 /etc/installurl) +fi MIRROR=${MIRROR:=http://cdn.openbsd.org/pub/OpenBSD} FTP_CMD=${FTP_CMD:=ftp -V} @@ -775,6 +778,10 @@ echo "==> UPDATING WITH $OPENUP" $OPENUP else + if [ X"snapshots" != X"$FORCE_DIR" ]; then + echo '==> RUNNING SYSPATCH' + syspatch + fi echo '==> UPDATING PACKAGES' pkg_add -u fi