=================================================================== RCS file: /cvs/openbsd/update_openbsd/update_openbsd,v retrieving revision 1.45 retrieving revision 1.46 diff -u -r1.45 -r1.46 --- openbsd/update_openbsd/update_openbsd 2012/12/16 01:56:46 1.45 +++ openbsd/update_openbsd/update_openbsd 2012/12/16 03:29:02 1.46 @@ -1,5 +1,5 @@ #!/bin/sh -# $AFresh1: update_openbsd,v 1.44 2012/12/09 04:08:37 andrew Exp $ +# $AFresh1: update_openbsd,v 1.45 2012/12/16 01:56:46 andrew Exp $ # # Copyright (c) 2012 Andrew Fresh # @@ -329,11 +329,13 @@ exit 1 fi - echo "Backing up $BOOT_KERNEL to /obsd" - $SUDO ln -f $BOOT_KERNEL /obsd - if [ $? -ne 0 ]; then - echo "Error copying old kernel!" >&2 - exit 1 + if [ X"$BOOT_KERNEL_VERSION" != X"$NEW_KERNEL_VERSION" ]; then + echo "Backing up $BOOT_KERNEL to /obsd" + $SUDO ln -f $BOOT_KERNEL /obsd + if [ $? -ne 0 ]; then + echo "Error copying old kernel!" >&2 + exit 1 + fi fi cd $RELEASEDIR