X-Git-Url: http://git.ozlabs.org/?p=yaboot.git;a=blobdiff_plain;f=ybin%2Fybin;h=029c868a83be178f55e194e21ff647275c9c8519;hp=30d369537e6c813340a1e1b90ae0e9cadf28f848;hb=6a6a039f03909f5cdf62ef94522eb1a70b7e792d;hpb=53695b2ef3f2fbf757b26c66ad3fa45ccb6b93e6 diff --git a/ybin/ybin b/ybin/ybin index 30d3695..029c868 100755 --- a/ybin/ybin +++ b/ybin/ybin @@ -28,7 +28,7 @@ if [ -n "$PATH_PREFIX" ] ; then fi PRG="${0##*/}" SIGINT="$PRG: Interrupt caught ... exiting" -VERSION=1.3.12-UNRELEASED_UNSUPPORTED_DEVELOPMENT_VERSION +VERSION=1.3.12 DEBUG=0 VERBOSE=0 TMP="${TMPDIR:-/tmp}" @@ -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"