version 1.55, 2013/12/28 02:56:24 |
version 1.58, 2013/12/31 18:46:59 |
|
|
#!/bin/sh |
#!/bin/sh |
# $AFresh1: update_openbsd,v 1.54 2013/12/28 02:55:28 andrew Exp $ |
# $AFresh1: update_openbsd,v 1.57 2013/12/31 18:42:31 andrew Exp $ |
# |
# |
# Copyright (c) 2012 Andrew Fresh <andrew@afresh1.com> |
# Copyright (c) 2012 Andrew Fresh <andrew@afresh1.com> |
# |
# |
|
|
done |
done |
|
|
local _type |
local _type |
|
local _ftp |
for _type in $CHECKSUM_TYPES; do |
for _type in $CHECKSUM_TYPES; do |
[ -e $_type ] && break |
[ -e $_type ] && break |
echo "===> $FTP_CMD ${FTP}/$_type" |
_ftp=`echo "$FTP" | sed -e 's,://[^/]*/,://ftp.openbsd.org/,'` |
$FTP_CMD ${FTP}/$_type |
echo "===> $FTP_CMD ${_ftp}/$_type" |
|
$FTP_CMD ${_ftp}/$_type |
done |
done |
} |
} |
|
|
|
|
return 1 |
return 1 |
fi |
fi |
|
|
ls bsd* *gz | sed -e 's/\(.*\)/(\1)/' > index |
local _nv=`echo $NEW_VER | sed -e 's/\.//'` |
|
|
|
( |
|
for _b in $INSTALL_KERNELS; do echo "($_b)" ; done |
|
for _s in $INSTALLED_SETS; do echo "($_s$_nv.tgz)"; done |
|
) > index |
grep -f index $_type | sum -c |
grep -f index $_type | sum -c |
|
|
if [ $? -ne 0 ]; then |
if [ $? -ne 0 ]; then |