version 1.67, 2014/05/11 03:40:54 |
version 1.70, 2015/01/18 02:59:23 |
|
|
#!/bin/sh |
#!/bin/sh |
# $AFresh1: update_openbsd,v 1.66 2014/02/01 22:07:04 andrew Exp $ |
# $AFresh1: update_openbsd,v 1.69 2014/10/18 23:05:49 andrew Exp $ |
# |
# |
# Copyright (c) 2012 Andrew Fresh <andrew@afresh1.com> |
# Copyright (c) 2012 Andrew Fresh <andrew@afresh1.com> |
# |
# |
|
|
if [ ! -e ./${_b} ]; then |
if [ ! -e ./${_b} ]; then |
echo "===> $FTP_CMD ${FTP}/${_b}" |
echo "===> $FTP_CMD ${FTP}/${_b}" |
$FTP_CMD ${FTP}/${_b} |
$FTP_CMD ${FTP}/${_b} |
|
else |
|
echo "===> Have ${_b}" |
fi |
fi |
|
kernel_file_version "${_b}" |
done |
done |
|
|
for _s in $INSTALLED_SETS; do |
for _s in $INSTALLED_SETS; do |
|
|
exit 1; |
exit 1; |
fi |
fi |
|
|
if [ X"" == X"$RELEASEDIR" ]; then |
|
echo "ERROR: no source for etc!" >&2 |
|
exit 1 |
|
fi |
|
|
|
cd $RELEASEDIR |
|
|
|
local _v=$FILE_VER |
local _v=$FILE_VER |
local _args="" |
local _args="" |
if [ -e etc${_v}.tgz ]; then |
|
_args="$_args -s ${RELEASEDIR}/etc${_v}.tgz" |
if [ ! -e /usr/share/sysmerge/etc.tgz ]; then |
|
if [ X"" == X"$RELEASEDIR" ]; then |
|
echo "ERROR: no source for etc!" >&2 |
|
exit 1 |
|
fi |
|
|
|
cd $RELEASEDIR |
|
|
|
if [ -e etc${_v}.tgz ]; then |
|
_args="$_args -s ${RELEASEDIR}/etc${_v}.tgz" |
|
fi |
|
if [ -e xetc${_v}.tgz ]; then |
|
_args="$_args -x ${RELEASEDIR}/xetc${_v}.tgz" |
|
fi |
|
if [ X"" == X"$_args" ]; then |
|
echo ERROR: No upgrade sets found! >&2 |
|
exit 1 |
|
fi |
fi |
fi |
if [ -e xetc${_v}.tgz ]; then |
|
_args="$_args -x ${RELEASEDIR}/xetc${_v}.tgz" |
|
fi |
|
if [ X"" == X"$_args" ]; then |
|
echo ERROR: No upgrade sets found! >&2 |
|
else |
|
echo '==> RUNNING SYSMERGE' |
|
$SYSMERGE $_args |
|
fi |
|
|
|
|
echo '==> RUNNING SYSMERGE' |
|
$SYSMERGE $_args |
|
|
cd $OLDPWD |
cd $OLDPWD |
} |
} |
|
|
|
|
#echo " FILE_VER: $FILE_VER" |
#echo " FILE_VER: $FILE_VER" |
echo |
echo |
|
|
|
for k in $INSTALL_KERNELS; do |
|
if [ -e "/$k" ]; then |
|
echo "Existing $k" |
|
kernel_file_version "/$k" |
|
fi |
|
done |
|
|
if [ ${_error} -ne 0 ]; then |
if [ ${_error} -ne 0 ]; then |
exit ${_error} |
exit ${_error} |
fi |
fi |
|
|
|
|
if [ -e /sbin/oreboot ]; then |
if [ -e /sbin/oreboot ]; then |
echo Removing /sbin/oreboot |
echo Removing /sbin/oreboot |
$rm -f /sbin/oreboot |
rm -f /sbin/oreboot |
fi |
fi |
update_etc |
update_etc |
|
|