summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2014-05-19 13:16:51 +0800
committerJeremy Kerr <jk@ozlabs.org>2014-05-19 14:22:19 +0800
commit1ae17ad22c1d111e35d75d4e93d609efd61b5329 (patch)
tree0ec16127b97688bbb2ef83c7a7d98949cb33ab6d /utils
parentadb11b86f216f26c2301270af4f847f8d7429aef (diff)
downloadpetitboot-1ae17ad22c1d111e35d75d4e93d609efd61b5329.zip
petitboot-1ae17ad22c1d111e35d75d4e93d609efd61b5329.tar.gz
utils/pb-console: use a linux termcap entry for local consoles
For local consoles, we always want a TERM=linux. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'utils')
-rw-r--r--utils/pb-console7
1 files changed, 7 insertions, 0 deletions
diff --git a/utils/pb-console b/utils/pb-console
index 9da899f..1c2bf62 100644
--- a/utils/pb-console
+++ b/utils/pb-console
@@ -96,6 +96,13 @@ do
fi
done
+# we force local terminals to use the linux termcap definition
+case "$(tty)" in
+/dev/tty[0-9]*)
+ export TERM=linux
+ ;;
+esac
+
verbose_opt=
sysinfo_bin=$(dirname $0)/pb-sysinfo
if [ -x $sysinfo_bin ] && $sysinfo_bin --debug-enabled
OpenPOWER on IntegriCloud