version 1.50, 2013/10/20 01:18:04 |
version 1.52, 2013/10/20 01:26:35 |
|
|
#!/bin/sh |
#!/bin/sh |
# $AFresh1: update_openbsd,v 1.49 2013/10/20 00:13:38 andrew Exp $ |
# $AFresh1: update_openbsd,v 1.51 2013/10/20 00:23:05 andrew Exp $ |
# |
# |
# Copyright (c) 2012 Andrew Fresh <andrew@afresh1.com> |
# Copyright (c) 2012 Andrew Fresh <andrew@afresh1.com> |
# |
# |
|
|
done |
done |
|
|
echo Extracted all sets. |
echo Extracted all sets. |
|
} |
|
|
|
install_sendmail_smtp_auth() { |
if [ -e ${RELEASEDIR}/sendmail-smtp_auth.gz ]; then |
if [ -e ${RELEASEDIR}/sendmail-smtp_auth.gz ]; then |
gzcat ${RELEASEDIR}/sendmail-smtp_auth.gz > \ |
gzcat ${RELEASEDIR}/sendmail-smtp_auth.gz > \ |
${RELEASEDIR}/sendmail-smtp_auth |
${RELEASEDIR}/sendmail-smtp_auth |
|
|
install_sets |
install_sets |
|
|
if [ X"$BOOT_KERNEL_VERSION" == X"$BOOTED_KERNEL_VERSION" ]; then |
if [ X"$BOOT_KERNEL_VERSION" == X"$BOOTED_KERNEL_VERSION" ]; then |
|
install_sendmail_smtp_auth |
|
|
if [ -e /sbin/oreboot ]; then |
if [ -e /sbin/oreboot ]; then |
echo Removing /sbin/oreboot |
echo Removing /sbin/oreboot |
$SUDO rm -f /sbin/oreboot |
$SUDO rm -f /sbin/oreboot |
|
|
echo New kernel installed. Please reboot! |
echo New kernel installed. Please reboot! |
if [ -e /sbin/oreboot ]; then |
if [ -e /sbin/oreboot ]; then |
echo Possibly using /sbin/oreboot |
echo Possibly using /sbin/oreboot |
fi |
|
|
|
local _send_dmesg=`dirname $0`/send_dmesg |
|
if [ -e "$_send_dmesg" ]; then |
|
if [ -e $RELEASEDIR/.send_dmesg ]; then |
|
$_send_dmesg |
|
rm -f $RELEASEDIR/.send_dmesg |
|
elif [ X"$CUR_VER" != X"$NEW_VER" ]; then |
|
touch $RELEASEDIR/.send_dmesg |
|
fi |
|
fi |
fi |