projects
/
petitboot
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45a091b
)
pb-console: Read /etc/environment and /etc/locale
author
Jeremy Kerr
<jk@ozlabs.org>
Tue, 9 Jul 2013 07:24:38 +0000
(15:24 +0800)
committer
Geoff Levand
<geoff@infradead.org>
Tue, 23 Jul 2013 16:44:45 +0000
(09:44 -0700)
Since we're starting from no environment on the consoles, allow
specifying an initial environment.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
utils/pb-console
patch
|
blob
|
history
diff --git
a/utils/pb-console
b/utils/pb-console
index 81be2183ca8c2e1f4bef273c0ecbfbda4fc16d62..b1c8003ef841d155b81051a9dc091beec83ff7d0 100644
(file)
--- 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