X-Git-Url: http://git.ozlabs.org/?p=yaboot.git;a=blobdiff_plain;f=ybin%2Fybin;h=029c868a83be178f55e194e21ff647275c9c8519;hp=beebfac807dfc2125e54222f7701efb403c34042;hb=6a6a039f03909f5cdf62ef94522eb1a70b7e792d;hpb=2303a06e095e2c174b68281156b68542e75e3210 diff --git a/ybin/ybin b/ybin/ybin index beebfac..029c868 100755 --- a/ybin/ybin +++ b/ybin/ybin @@ -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"