| # Copyright 2012 The ChromiumOS Authors | |
| # 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 may get installed | |
| # to /usr/local/bin/less on a test image, so fix the default | |
| USR_LOCAL="${ROOT_FS_DIR}/usr/local" | |
| if [ ! -f "${USR_LOCAL}/bin/less" ]; then | |
| echo "Nothing to do. less is not installed in /usr/local." | |
| exit 0 | |
| fi | |
| sed -i 's:/usr/bin/less:/usr/local/bin/less:g' ${ROOT_FS_DIR}/etc/profile |