version 1.44, 2012/12/09 04:08:37 |
version 1.46, 2012/12/16 03:29:02 |
|
|
#!/bin/sh |
#!/bin/sh |
# $AFresh1: update_openbsd,v 1.43 2012/12/09 04:06:57 andrew Exp $ |
# $AFresh1: update_openbsd,v 1.45 2012/12/16 01:56:46 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 |
|
|
for _b in $INSTALL_KERNELS; do |
for _b in $INSTALL_KERNELS; do |
if [ -e /${_b} -a ! -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} |
fi |
fi |
|
|
exit 1 |
exit 1 |
fi |
fi |
|
|
echo "Backing up $BOOT_KERNEL to /obsd" |
if [ X"$BOOT_KERNEL_VERSION" != X"$NEW_KERNEL_VERSION" ]; then |
$SUDO ln -f $BOOT_KERNEL /obsd |
echo "Backing up $BOOT_KERNEL to /obsd" |
if [ $? -ne 0 ]; then |
$SUDO ln -f $BOOT_KERNEL /obsd |
echo "Error copying old kernel!" >&2 |
if [ $? -ne 0 ]; then |
exit 1 |
echo "Error copying old kernel!" >&2 |
|
exit 1 |
|
fi |
fi |
fi |
|
|
cd $RELEASEDIR |
cd $RELEASEDIR |