diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2013-01-19 08:37:55 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-01-21 09:04:44 +0100 |
commit | f19a924f92abfc994f300200abedbae32ce9807a (patch) | |
tree | 19febbdc56b6e57a2f41a5849bd01c59daef831c /defaultenv-2 | |
parent | 12ef4d0df9ad86a7dc3eb4abf9175e227d7a7305 (diff) | |
download | barebox-f19a924f92abfc994f300200abedbae32ce9807a.tar.gz barebox-f19a924f92abfc994f300200abedbae32ce9807a.tar.xz |
defaultenv-2: move ps1 to base/init/ps1
so we can overwrite it
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'defaultenv-2')
-rw-r--r-- | defaultenv-2/base/bin/init | 6 | ||||
-rw-r--r-- | defaultenv-2/base/init/ps1 | 9 |
2 files changed, 9 insertions, 6 deletions
diff --git a/defaultenv-2/base/bin/init b/defaultenv-2/base/bin/init index c377ecafc4..b606b634a2 100644 --- a/defaultenv-2/base/bin/init +++ b/defaultenv-2/base/bin/init @@ -15,12 +15,6 @@ global editcmd=sedit /env/config -if [ ${global.allow_color} = "true" ]; then - export PS1="\e[1;32mbarebox@\e[1;36m\h:\w\e[0m " -else - export PS1="barebox@\h:\w " -fi - if [ -e /env/menu ]; then echo -e -n "\nHit m for menu or any other key to stop autoboot: " else diff --git a/defaultenv-2/base/init/ps1 b/defaultenv-2/base/init/ps1 new file mode 100644 index 0000000000..fcbf4b63f4 --- /dev/null +++ b/defaultenv-2/base/init/ps1 @@ -0,0 +1,9 @@ +#!/bin/sh + +/env/config + +if [ ${global.allow_color} = "true" ]; then + export PS1="\e[1;32mbarebox@\e[1;36m\h:\w\e[0m " +else + export PS1="barebox@\h:\w " +fi |