#!/bin/sh
# Copyright 2016 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
# Helper utility to read a single value from VPD.
#
# The script is optimized for reading one entry from VPD, first RO then RW. If
# the given key is not found, it prints nothing and exists with zero. But, it
# may emit errors in stderr, so the its users should only rely only on stdout
# and ignore stderr.
SYS_VPD=/sys/firmware/vpd