#!/bin/bash # Copyright (c) 2012 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # Script to increment kernel subkey for firmware updates. # Used when revving versions for a firmware update. # Load common constants and variables. . "$(dirname "$0")/common.sh" # Abort on errors. set -e if [ $# -ne 1 ]; then cat < Increments the kernel subkey in the specified keyset. EOF exit 1 fi KEY_DIR=$1 main() { load_current_versions "${KEY_DIR}" new_firm_ver=$(increment_version "${KEY_DIR}" "firmware_version") cd "${KEY_DIR}" backup_existing_kernel_subkeys ${CURR_FIRM_VER} ${CURR_KERNKEY_VER} cat <