]> git.ozlabs.org Git - petitboot/commitdiff
pb-console: Read /etc/environment and /etc/locale
authorJeremy Kerr <jk@ozlabs.org>
Tue, 9 Jul 2013 07:24:38 +0000 (15:24 +0800)
committerGeoff 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

index 81be2183ca8c2e1f4bef273c0ecbfbda4fc16d62..b1c8003ef841d155b81051a9dc091beec83ff7d0 100644 (file)
@@ -87,6 +87,14 @@ then
        fi
 fi
 
        fi
 fi
 
+for f in /etc/environment /etc/locale
+do
+       if [ -e "$f" ]
+       then
+               export $(cat "$f")
+       fi
+done
+
 while :
 do
        $ui
 while :
 do
        $ui