version 1.121, 2019/03/02 01:02:02 |
version 1.125, 2019/04/23 23:38:48 |
|
|
#!/bin/sh |
#!/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 <andrew@afresh1.com> |
# Copyright (c) 2012 Andrew Fresh <andrew@afresh1.com> |
# |
# |
|
|
. ${HOME}/.update_openbsdrc |
. ${HOME}/.update_openbsdrc |
fi |
fi |
|
|
|
if [ -z "$MIRROR" -a -e /etc/installurl ]; then |
|
MIRROR=$(head -1 /etc/installurl) |
|
fi |
MIRROR=${MIRROR:=http://cdn.openbsd.org/pub/OpenBSD} |
MIRROR=${MIRROR:=http://cdn.openbsd.org/pub/OpenBSD} |
FTP_CMD=${FTP_CMD:=ftp -V} |
FTP_CMD=${FTP_CMD:=ftp -V} |
|
|
|
|
echo "==> UPDATING WITH $OPENUP" |
echo "==> UPDATING WITH $OPENUP" |
$OPENUP |
$OPENUP |
else |
else |
|
if [ X"snapshots" != X"$FORCE_DIR" ]; then |
|
echo '==> RUNNING SYSPATCH' |
|
syspatch |
|
fi |
echo '==> UPDATING PACKAGES' |
echo '==> UPDATING PACKAGES' |
pkg_add -u |
pkg_add -u |
fi |
fi |