From d4feba845d3df554d0524f30367b8f497e23de4c Mon Sep 17 00:00:00 2001 From: Sonny Rao Date: Mon, 2 Jul 2012 14:24:52 -0700 Subject: [PATCH] Add mod for test script which sets the PAGER default correctly This will set the PAGER to /usr/local/bin/less instead of /usr/bin/less BUG=none TEST=PAGER variable points to the correct place by default Change-Id: I7becfe39ea1817fd17195d8eee46d23d4b8b0d00 Reviewed-on: https://gerrit.chromium.org/gerrit/26602 Reviewed-by: Anush Elangovan Reviewed-by: Chris Sosa Tested-by: Sonny Rao Commit-Ready: Sonny Rao --- mod_for_test_scripts/360setPagerLess | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 mod_for_test_scripts/360setPagerLess diff --git a/mod_for_test_scripts/360setPagerLess b/mod_for_test_scripts/360setPagerLess new file mode 100755 index 0000000000..411800dad1 --- /dev/null +++ b/mod_for_test_scripts/360setPagerLess @@ -0,0 +1,8 @@ +# 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. +# +# The PAGER variable defaults to /usr/bin/less but it will get installed +# to /usr/local/bin/less on a test image, so fix the default + +sed -i 's:/usr/bin/less:/usr/local/bin/less:g' ${ROOT_FS_DIR}/etc/profile