| version 1.32, 2009/12/10 19:34:39 |
version 1.38, 2012/04/19 05:03:47 |
|
|
| #!/bin/sh |
#!/bin/sh |
| # $RedRiver: update_openbsd,v 1.31 2009/12/10 19:23:11 andrew Exp $ |
# $AFresh1: update_openbsd,v 1.37 2010/06/17 22:39:09 andrew Exp $ |
| |
|
| installed_sets() { |
installed_sets() { |
| local misc=/usr/share/doc/README |
local misc=/usr/share/doc/README |
|
|
| fi |
fi |
| done |
done |
| |
|
| sendmail -d0.1 -bt < /dev/null | grep -q SASL |
sendmail -d0.1 --badoption </dev/null 2>/dev/null | grep -q SASL |
| if [ $? == 0 ]; then |
if [ $? == 0 ]; then |
| echo -n ' sendmail-smtp_auth' |
echo -n ' sendmail-smtp_auth' |
| fi |
fi |
|
|
| |
|
| 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 |
| } |
} |
| |
|
|
|
| done |
done |
| |
|
| if [ ! -h /bsd ]; then |
if [ ! -h /bsd ]; then |
| |
cd / |
| if [ -e /bsd.mp ]; then |
if [ -e /bsd.mp ]; then |
| echo linking /bsd.mp to /bsd |
echo linking /bsd.mp to /bsd |
| $SUDO ln -sf /bsd.mp /bsd |
$SUDO ln -sf /bsd.mp bsd |
| else |
else |
| echo linking /bsd.sp to /bsd |
echo linking /bsd.sp to /bsd |
| $SUDO ln -sf /bsd.sp /bsd |
$SUDO ln -sf /bsd.sp bsd |
| fi |
fi |
| if [ $? -ne 0 ]; then |
if [ $? -ne 0 ]; then |
| echo ERROR: Could not symlink new kernel! >&2 |
echo ERROR: Could not symlink new kernel! >&2 |
| exit 1 |
exit 1 |
| fi |
fi |
| |
cd $OLDPWD |
| fi |
fi |
| |
|
| if [ -z $_installed_new_bsd ]; then |
if [ -z $_installed_new_bsd ]; then |
|
|
| |
|
| else |
else |
| echo Instructions for updating to the new version available from |
echo Instructions for updating to the new version available from |
| if [ X"snapshots" != X"$FORCE_DIR" ]; then |
if [ X"snapshots" == X"$FORCE_DIR" ]; then |
| echo " http://www.openbsd.org/faq/current.html" |
echo " http://www.openbsd.org/faq/current.html" |
| else |
else |
| echo " http://www.openbsd.org/faq/upgrade${FILE_VER}.html" |
echo " http://www.openbsd.org/faq/upgrade${FILE_VER}.html" |