From: Jeremy Kerr Date: Tue, 9 Jul 2013 07:24:38 +0000 (+0800) Subject: pb-console: Read /etc/environment and /etc/locale X-Git-Tag: v1.0.0~554 X-Git-Url: https://git.ozlabs.org/?a=commitdiff_plain;h=0134e4d24ea0d09c4daf64ea513099d246186d32;p=petitboot 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 --- 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