version 1.79, 2015/11/03 03:56:53 |
version 1.83, 2016/10/01 21:12:17 |
|
|
#!/bin/sh |
#!/bin/sh |
# $AFresh1: update_openbsd,v 1.78 2015/10/11 23:35:14 andrew Exp $ |
# $AFresh1: update_openbsd,v 1.82 2016/05/10 01:58:12 andrew Exp $ |
# |
# |
# Copyright (c) 2012 Andrew Fresh <andrew@afresh1.com> |
# Copyright (c) 2012 Andrew Fresh <andrew@afresh1.com> |
# |
# |
|
|
local _v=$FILE_VER |
local _v=$FILE_VER |
local _args="" |
local _args="" |
|
|
if [ ! -e /usr/share/sysmerge/etc.tgz ]; then |
if [ ! -e /var/sysmerge/etc.tgz ]; then |
if [ X"" == X"$RELEASEDIR" ]; then |
if [ X"" == X"$RELEASEDIR" ]; then |
echo "ERROR: no source for etc!" >&2 |
echo "ERROR: no source for etc!" >&2 |
exit 1 |
exit 1 |
|
|
fi |
fi |
update_etc |
update_etc |
|
|
OPENUP=$( which openup ) |
OPENUP=$( which openup 2>/dev/null ) |
if [ -n "$OPENUP" ]; then |
if [ -n "$OPENUP" ]; then |
echo "==> UPDATING WITH $OPENUP" |
echo "==> UPDATING WITH $OPENUP" |
$OPENUP |
$OPENUP |
|
|
fw_update |
fw_update |
|
|
else |
else |
|
[ -e /etc/rc.sysmerge ] && grep -q $SYSMERGE /etc/rc.sysmerge || |
|
echo "$SYSMERGE -b" >>/etc/rc.sysmerge && |
|
echo "==> RUNNING $SYSMERGE -b ON REBOOT" |
|
|
echo Instructions for updating to the new version available from |
echo Instructions for updating to the new version available from |
if [ X"snapshots" == X"$FORCE_DIR" ]; then |
if [ X"snapshots" == X"$FORCE_DIR" ]; then |
echo " http://www.openbsd.org/faq/current.html" |
echo " http://www.openbsd.org/faq/current.html" |