From 0134e4d24ea0d09c4daf64ea513099d246186d32 Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Tue, 9 Jul 2013 15:24:38 +0800 Subject: pb-console: Read /etc/environment and /etc/locale Since we're starting from no environment on the consoles, allow specifying an initial environment. Signed-off-by: Jeremy Kerr --- utils/pb-console | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'utils/pb-console') diff --git a/utils/pb-console b/utils/pb-console index 81be218..b1c8003 100644 --- a/utils/pb-console +++ b/utils/pb-console @@ -87,6 +87,14 @@ then fi fi +for f in /etc/environment /etc/locale +do + if [ -e "$f" ] + then + export $(cat "$f") + fi +done + while : do $ui -- cgit v1.2.1