diff options
author | Christian Rößler | 2014-07-24 18:20:14 +0200 |
---|---|---|
committer | Christian Rößler | 2014-07-24 18:20:14 +0200 |
commit | 089490bda0e49cdc98fcff57c737252413f38614 (patch) | |
tree | 329b9fde52f591623297d073389824545d378f21 /satellit_installer/includes/90-set_prompt.inc | |
parent | [SSPS] mpt-status deinstalled, tftp from inetd.conf, cron.d -> sleep 30 (diff) | |
download | setup-scripts-089490bda0e49cdc98fcff57c737252413f38614.tar.gz setup-scripts-089490bda0e49cdc98fcff57c737252413f38614.tar.xz setup-scripts-089490bda0e49cdc98fcff57c737252413f38614.zip |
[SSPS] Cosmetics: Setting very classy prompt etc.
Diffstat (limited to 'satellit_installer/includes/90-set_prompt.inc')
-rw-r--r-- | satellit_installer/includes/90-set_prompt.inc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/satellit_installer/includes/90-set_prompt.inc b/satellit_installer/includes/90-set_prompt.inc new file mode 100644 index 0000000..fa554f8 --- /dev/null +++ b/satellit_installer/includes/90-set_prompt.inc @@ -0,0 +1,15 @@ +set_prompt() { + echo "#" + echo "# As one of the last things here we will set a new prompt to distinguish" + echo "# the beLehrpool satellite server from other servers. To accomplish this" + echo "# we will set a very clasy prompt. This will take effect at next root login." + echo -n "# Setting prompt..." + if [ $(grep -c \ + 'PS1\=\"\\\[\\033\[01;31m\\\]\\u\\\[\\033\[00m\\\]@\\\[\\033\[01;32m\\\]\\h \\\[\\033\[01;34m\\\]\\w\\\[\\033\[00m\\\] # \"' \ + /root/.bashrc) -gt 0 ]; then + echo " already done." + else + echo 'PS1="\[\033[01;31m\]\u\[\033[00m\]@\[\033[01;32m\]\h \[\033[01;34m\]\w\[\033[00m\] # "' >> /root/.bashrc + echo " ok." + fi +} |