X-Git-Url: http://git.ozlabs.org/?p=yaboot.git;a=blobdiff_plain;f=ybin%2Fybin;h=029c868a83be178f55e194e21ff647275c9c8519;hp=fa3813a9f9ea9d3e286cecf93838ce73fef47dbf;hb=6a6a039f03909f5cdf62ef94522eb1a70b7e792d;hpb=c8468c1549669e3f06387ab6a162e5d6498c6de7;ds=sidebyside diff --git a/ybin/ybin b/ybin/ybin index fa3813a..029c868 100755 --- a/ybin/ybin +++ b/ybin/ybin @@ -3,7 +3,7 @@ ############################################################################### ## ## ybin (YaBoot INstaller) installs/updates the yaboot bootloader. -## Copyright (C) 2000, 2001, 2002 Ethan Benson +## Copyright (C) 2000, 2001, 2002, 2003 Ethan Benson ## ## This program is free software; you can redistribute it and/or ## modify it under the terms of the GNU General Public License @@ -28,7 +28,7 @@ if [ -n "$PATH_PREFIX" ] ; then fi PRG="${0##*/}" SIGINT="$PRG: Interrupt caught ... exiting" -VERSION=1.3.8-rc2 +VERSION=1.3.12 DEBUG=0 VERBOSE=0 TMP="${TMPDIR:-/tmp}" @@ -139,7 +139,7 @@ echo \ "$PRG $VERSION Written by Ethan Benson -Copyright (C) 2000, 2001, 2002 Ethan Benson +Copyright (C) 2000, 2001, 2002, 2003 Ethan Benson This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." } @@ -462,6 +462,10 @@ checkconf() echo 1>&2 "$PRG: /dev/nvram: Permission denied" echo 1>&2 "$PRG: Warning: nvram will not be updated" nonvram=1 + elif ! (dd if=/dev/nvram of=/dev/null bs=1 count=10 > /dev/null 2>&1) ; then + echo 1>&2 "$PRG: /dev/nvram: No such device" + echo 1>&2 "$PRG: Warning: nvram will not be updated" + nonvram=1 else nonvram=1 echo 1>&2 "$PRG: Warning: Incompatible version of \`nvsetenv', nvram will not be updated"