changeset 1038:2957c1dd95cb

Update native prompt to show amount of parallelism a build can get (indicating whether distcc is enabled).
author Rob Landley <rob@landley.net>
date Tue, 13 Apr 2010 12:58:42 -0500
parents 3a141d15c503
children a34a4954c640
files sources/native-root/sbin/init.sh
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sources/native-root/sbin/init.sh	Mon Apr 12 00:11:10 2010 -0500
+++ b/sources/native-root/sbin/init.sh	Tue Apr 13 12:58:42 2010 -0500
@@ -14,7 +14,8 @@
 # Make sure /proc is there
 mountpoint -q proc || mount -t proc proc proc
 
-export PS1='($HOST) \w \$ '
+[ -z "$CPUS" ] && export CPUS=1
+export PS1='($HOST:$CPUS) \w \$ '
 
 # If we're running under qemu, do some more setup
 if [ $$ -eq 1 ]