version 1.30, 2009/12/10 18:21:51 |
version 1.33, 2009/12/31 16:48:19 |
|
|
#!/bin/sh |
#!/bin/sh |
# $RedRiver: update_openbsd,v 1.29 2009/12/10 06:51:28 andrew Exp $ |
# $RedRiver: update_openbsd,v 1.32 2009/12/10 19:34:39 andrew Exp $ |
|
|
installed_sets() { |
installed_sets() { |
local misc=/usr/share/doc/README |
local misc=/usr/share/doc/README |
|
|
|
|
follow_symlink () { |
follow_symlink () { |
local _file=$1 |
local _file=$1 |
local _next=$( file $_file | |
# This could go circular, but I dunno how to fix that. |
grep 'symbolic link' | |
if [ -h $_file ]; then |
sed -e s/^.*\\\`// -e s/\\\'\$// ) |
follow_symlink $( file $_file | |
if [ -h $_next ]; then |
grep 'symbolic link' | |
follow_symlink $_next |
sed -e s/^.*\\\`// -e s/\\\'\$// ) |
else |
else |
echo $_next |
echo $_file |
fi |
fi |
} |
} |
|
|
|
|
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 |