=================================================================== RCS file: /cvs/openbsd/update_openbsd/update_openbsd,v retrieving revision 1.41 retrieving revision 1.43 diff -u -r1.41 -r1.43 --- openbsd/update_openbsd/update_openbsd 2012/12/08 19:55:39 1.41 +++ openbsd/update_openbsd/update_openbsd 2012/12/09 04:06:57 1.43 @@ -1,5 +1,5 @@ #!/bin/sh -# $AFresh1: update_openbsd,v 1.40 2012/12/08 19:54:08 andrew Exp $ +# $AFresh1: update_openbsd,v 1.42 2012/12/09 03:41:41 andrew Exp $ # # Copyright (c) 2012 Andrew Fresh # @@ -175,8 +175,8 @@ [ -e /boot.conf ] && sed -E '/^ *(set +image|boot) +/!d ; \ s///; s/^.*://; s/ .*$//' /boot.conf \ ) | tail -1` + BOOT_KERNEL=`follow_symlink /$BOOT_KERNEL` BOOT_KERNEL="/${BOOT_KERNEL#/}" - BOOT_KERNEL=`follow_symlink $BOOT_KERNEL` BOOT_KERNEL_VERSION=`kernel_file_version $BOOT_KERNEL` @@ -556,10 +556,10 @@ read _temp fi -if [ X"" != X"$SUDO" ]; then - echo Please enter your sudo password if prompted. - echo You may be asked for it again later in the process. - $SUDO -v +if [ -n "$SUDO" ]; then + echo + echo You may be asked for your sudo password multiple times. + $SUDO -v -p "sudo Password: " fi install_kernels