=================================================================== RCS file: /cvs/openbsd/update_openbsd/update_openbsd,v retrieving revision 1.122 retrieving revision 1.124 diff -u -r1.122 -r1.124 --- openbsd/update_openbsd/update_openbsd 2019/03/02 01:04:52 1.122 +++ openbsd/update_openbsd/update_openbsd 2019/03/31 22:10:01 1.124 @@ -1,5 +1,5 @@ #!/bin/sh -# $AFresh1: update_openbsd,v 1.121 2019/03/02 01:02:02 andrew Exp $ +# $AFresh1: update_openbsd,v 1.123 2019/03/02 01:05:59 andrew Exp $ # # Copyright (c) 2012 Andrew Fresh # @@ -649,6 +649,9 @@ . ${HOME}/.update_openbsdrc fi +if [ -z "$MIRROR" -a -e /etc/installurl ]; then + MIRROR=$(< /etc/installurl) +fi MIRROR=${MIRROR:=http://cdn.openbsd.org/pub/OpenBSD} FTP_CMD=${FTP_CMD:=ftp -V} @@ -776,7 +779,7 @@ $OPENUP else if [ X"snapshots" != X"$FORCE_DIR" ]; then - echo '==> Running syspatch' + echo '==> RUNNING SYSPATCH' syspatch fi echo '==> UPDATING PACKAGES'