=================================================================== RCS file: /cvs/openbsd/update_openbsd/update_openbsd,v retrieving revision 1.35 retrieving revision 1.38 diff -u -r1.35 -r1.38 --- openbsd/update_openbsd/update_openbsd 2010/02/10 20:57:07 1.35 +++ openbsd/update_openbsd/update_openbsd 2012/04/19 05:03:47 1.38 @@ -1,5 +1,5 @@ #!/bin/sh -# $AFresh1: update_openbsd,v 1.33 2009/12/31 16:48:19 andrew Exp $ +# $AFresh1: update_openbsd,v 1.37 2010/06/17 22:39:09 andrew Exp $ installed_sets() { local misc=/usr/share/doc/README @@ -335,17 +335,19 @@ done if [ ! -h /bsd ]; then + cd / if [ -e /bsd.mp ]; then echo linking /bsd.mp to /bsd - $SUDO ln -sf /bsd.mp /bsd + $SUDO ln -sf /bsd.mp bsd else echo linking /bsd.sp to /bsd - $SUDO ln -sf /bsd.sp /bsd + $SUDO ln -sf /bsd.sp bsd fi if [ $? -ne 0 ]; then echo ERROR: Could not symlink new kernel! >&2 exit 1 fi + cd $OLDPWD fi if [ -z $_installed_new_bsd ]; then @@ -540,7 +542,7 @@ else 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" else echo " http://www.openbsd.org/faq/upgrade${FILE_VER}.html"