diff --git a/mod_for_test_scripts/002changeUpdateChannel b/mod_for_test_scripts/002changeUpdateChannel new file mode 100755 index 0000000000..b07422e6ee --- /dev/null +++ b/mod_for_test_scripts/002changeUpdateChannel @@ -0,0 +1,12 @@ +#!/bin/bash + +# Copyright (c) 2011 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. +# +# Changes the channel of the image for test builds so that it will be +# identified as a test image to Omaha which will not give any updates. + +echo "Modifying Release Track for Test (testimage-channel)." +FILE="${ROOT_FS_DIR}/etc/lsb-release" +sed -i 's/^\(CHROMEOS_RELEASE_TRACK=\).*/\1testimage-channel/' $FILE