=================================================================== RCS file: /cvs/openbsd/update_openbsd/update_openbsd,v retrieving revision 1.123 retrieving revision 1.124 diff -u -r1.123 -r1.124 --- openbsd/update_openbsd/update_openbsd 2019/03/02 01:05:59 1.123 +++ openbsd/update_openbsd/update_openbsd 2019/03/31 22:10:01 1.124 @@ -1,5 +1,5 @@ #!/bin/sh -# $AFresh1: update_openbsd,v 1.122 2019/03/02 01:04:52 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}