=================================================================== RCS file: /cvs/openbsd/update_openbsd/update_openbsd,v retrieving revision 1.48 retrieving revision 1.49 diff -u -r1.48 -r1.49 --- openbsd/update_openbsd/update_openbsd 2013/01/26 18:13:03 1.48 +++ openbsd/update_openbsd/update_openbsd 2013/10/20 01:13:38 1.49 @@ -1,5 +1,5 @@ #!/bin/sh -# $AFresh1: update_openbsd,v 1.47 2012/12/16 06:56:15 andrew Exp $ +# $AFresh1: update_openbsd,v 1.48 2013/01/26 18:13:03 andrew Exp $ # # Copyright (c) 2012 Andrew Fresh # @@ -396,7 +396,8 @@ local _v=$FILE_VER - if [ $CUR_VER != $NEW_VER -a ! -e /sbin/oreboot ]; then + if [ X"$BOOT_KERNEL_VERSION" != X"$BOOTED_KERNEL_VERSION" \ + -a ! -e /sbin/oreboot ]; then $SUDO cp /sbin/reboot /sbin/oreboot if [ $? -ne 0 ]; then echo "Error copying old reboot command!" >&2 @@ -561,7 +562,7 @@ install_kernels install_sets -if [ $CUR_VER == $NEW_VER ]; then +if [ X"$BOOT_KERNEL_VERSION" == X"$BOOTED_KERNEL_VERSION" ]; then if [ -e /sbin/oreboot ]; then echo Removing /sbin/oreboot $SUDO rm -f /sbin/oreboot